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
d4149129
Commit
d4149129
authored
Feb 08, 2020
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zyj-1002302' into 'master'
群发给所有好友 See merge request rays/pcloud-book!366
parents
40642092
395bc8f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
WechatGroupConsr.java
...om/pcloud/book/consumer/wechatgroup/WechatGroupConsr.java
+11
-0
SelfPushBizImpl.java
...n/java/com/pcloud/book/push/biz/impl/SelfPushBizImpl.java
+11
-0
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/consumer/wechatgroup/WechatGroupConsr.java
View file @
d4149129
...
@@ -608,4 +608,15 @@ public class WechatGroupConsr {
...
@@ -608,4 +608,15 @@ public class WechatGroupConsr {
}
}
return
ids
;
return
ids
;
}
}
@ParamLog
(
"获取小号所有好友"
)
public
List
<
String
>
getFriendByRobotId
(
String
altId
)
{
List
<
String
>
ids
=
new
ArrayList
<>();
try
{
ids
=
ResponseHandleUtil
.
parseList
(
selfRobotService
.
getFriendByRobotId
(
altId
),
String
.
class
);
}
catch
(
Exception
e
){
log
.
error
(
"[selfRobotService.getFriendByRobotId]调用失败"
+
e
.
getMessage
(),
e
);
}
return
ids
;
}
}
}
pcloud-service-book/src/main/java/com/pcloud/book/push/biz/impl/SelfPushBizImpl.java
View file @
d4149129
...
@@ -159,6 +159,17 @@ public class SelfPushBizImpl implements SelfPushBiz {
...
@@ -159,6 +159,17 @@ public class SelfPushBizImpl implements SelfPushBiz {
SelfPush
selfPush
=
selfPushDao
.
getById
(
pushId
);
SelfPush
selfPush
=
selfPushDao
.
getById
(
pushId
);
if
(!
StringUtil
.
isEmpty
(
selfPush
.
getAltId
())){
//平台端群发
if
(!
StringUtil
.
isEmpty
(
selfPush
.
getAltId
())){
//平台端群发
String
altId
=
selfPush
.
getAltId
();
String
altId
=
selfPush
.
getAltId
();
Boolean
sendAllFriend
=
false
;
if
(
"pro"
.
equalsIgnoreCase
(
envStr
)
&&
altId
.
equals
(
"wxid_x8i897ryabo722"
)){
//小睿给所有好友发 1002302
sendAllFriend
=
true
;
}
else
if
(
"uat"
.
equalsIgnoreCase
(
envStr
)
&&
altId
.
equals
(
"wxid_p7gywuxkk89112"
))
{
sendAllFriend
=
true
;
}
else
if
(
"test"
.
equalsIgnoreCase
(
envStr
)
&&
altId
.
equals
(
"wxid_zus32xb5ukjn22"
)){
sendAllFriend
=
true
;
}
if
(
sendAllFriend
){
userIdList
=
wechatGroupConsr
.
getFriendByRobotId
(
altId
);
}
List
<
String
>
sendUserIds
=
new
ArrayList
<>();
List
<
String
>
sendUserIds
=
new
ArrayList
<>();
sendUserIds
.
addAll
(
userIdList
);
sendUserIds
.
addAll
(
userIdList
);
ThreadPoolUtils
.
SEND_MESSAGE_THREAD_POOL
.
execute
(()
->
{
ThreadPoolUtils
.
SEND_MESSAGE_THREAD_POOL
.
execute
(()
->
{
...
...
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