Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
24b30305
Commit
24b30305
authored
Jun 26, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
bb49fe4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
BookGuideBizImpl.java
...a/com/pcloud/book/keywords/biz/impl/BookGuideBizImpl.java
+4
-2
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/BookGuideBizImpl.java
View file @
24b30305
...
@@ -221,16 +221,18 @@ public class BookGuideBizImpl implements BookGuideBiz {
...
@@ -221,16 +221,18 @@ public class BookGuideBizImpl implements BookGuideBiz {
boolean
canSend
=
false
;
boolean
canSend
=
false
;
// 查看群成员
// 查看群成员
GroupInfoVO
groupInfoVO
=
WxGroupSDK
.
getGroupInfo
(
weixinGroupId
,
robotId
);
GroupInfoVO
groupInfoVO
=
WxGroupSDK
.
getGroupInfo
(
weixinGroupId
,
robotId
);
log
.
info
(
"[查看群成员] : groupInfoVO:{}"
,
groupInfoVO
);
if
(!
CollectionUtils
.
isEmpty
(
groupInfoVO
.
getIdList
()))
{
if
(!
CollectionUtils
.
isEmpty
(
groupInfoVO
.
getIdList
()))
{
// 查看该用户weixinid
// 查看该用户weixinid
final
List
<
String
>
nickName
=
wechatGroupConsr
.
getWxUserIdsByNickName
(
pushAddUserMessageDTO
.
getNickName
());
final
List
<
String
>
nickName
=
wechatGroupConsr
.
getWxUserIdsByNickName
(
pushAddUserMessageDTO
.
getNickName
());
log
.
info
(
"[查看该用户weixinid] : nickName:{}"
,
nickName
);
if
(!
CollectionUtils
.
isEmpty
(
nickName
))
{
if
(!
CollectionUtils
.
isEmpty
(
nickName
))
{
final
Map
<
String
,
Boolean
>
map
=
Maps
.
newHashMap
();
final
Map
<
String
,
Boolean
>
map
=
Maps
.
newHashMap
();
for
(
String
s
:
groupInfoVO
.
getIdList
())
{
for
(
String
s
:
groupInfoVO
.
getIdList
())
{
map
.
put
(
s
,
true
);
map
.
put
(
s
,
true
);
}
}
for
(
String
s
:
nickName
)
{
for
(
String
s
:
nickName
)
{
if
(
map
.
get
(
s
))
{
if
(
null
!=
map
.
get
(
s
)
&&
map
.
get
(
s
))
{
// 若在群设置true
// 若在群设置true
canSend
=
true
;
canSend
=
true
;
break
;
break
;
...
@@ -240,7 +242,7 @@ public class BookGuideBizImpl implements BookGuideBiz {
...
@@ -240,7 +242,7 @@ public class BookGuideBizImpl implements BookGuideBiz {
}
}
// 判断是否黑名单
// 判断是否黑名单
final
Boolean
kickUser
=
wechatGroupConsr
.
isKickUser
(
pushAddUserMessageDTO
.
getNickName
(),
weixinGroupId
);
final
Boolean
kickUser
=
wechatGroupConsr
.
isKickUser
(
pushAddUserMessageDTO
.
getNickName
(),
weixinGroupId
);
log
.
info
(
"[推送欢迎语消息]:pushAddUserMessageDTO:{},kickUser:{}
"
,
pushAddUserMessageDTO
,
kickUser
);
log
.
info
(
"[推送欢迎语消息]:pushAddUserMessageDTO:{},kickUser:{}
,canSend:{}"
,
pushAddUserMessageDTO
,
kickUser
,
canSend
);
// 在群,且非黑名单
// 在群,且非黑名单
canSend
=
canSend
&&
!
kickUser
;
canSend
=
canSend
&&
!
kickUser
;
if
(!
canSend
)
{
if
(!
canSend
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment