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
96047b5d
Commit
96047b5d
authored
May 17, 2019
by
lili
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
9cd3547f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
GroupQrcodeBizImpl.java
...va/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
+6
-6
GroupQrcodeFacadeImpl.java
.../pcloud/book/group/facade/impl/GroupQrcodeFacadeImpl.java
+1
-1
SendWeixinRequestTools.java
...a/com/pcloud/book/group/tools/SendWeixinRequestTools.java
+10
-10
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/group/biz/impl/GroupQrcodeBizImpl.java
View file @
96047b5d
...
...
@@ -187,12 +187,12 @@ public class GroupQrcodeBizImpl implements GroupQrcodeBiz {
//将二维码修改为已满群状态
changeToOverNumber
(
groupQrcodeDTO
.
getWeixinQrcodeId
(),
groupQrcodeDTO
.
getId
());
}
List
<
String
>
nickNames
=
JedisClusterUtils
.
getJsonList
(
"BOOK:WEIXINGROUP:GUIDEUSER"
+
weixinGroupId
,
String
.
class
);
if
(
ListUtils
.
isEmpty
(
nickNames
)
&&
!
StringUtil
.
isEmpty
(
nickName
)){
nickNames
=
new
ArrayList
<>();
nickNames
.
add
(
nickName
);
JedisClusterUtils
.
setJsonList
(
"BOOK:WEIXINGROUP:GUIDEUSER"
+
weixinGroupId
,
nickNames
,
600
);
}
//
List<String> nickNames = JedisClusterUtils.getJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, String.class);
//
if(ListUtils.isEmpty(nickNames) && !StringUtil.isEmpty(nickName)){
//
nickNames = new ArrayList<>();
//
nickNames.add(nickName);
//
JedisClusterUtils.setJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, nickNames, 600);
//
}
String
value
=
JedisClusterUtils
.
getJson
(
"BOOK:WEIXINGROUP:GUIDE"
+
weixinGroupId
,
String
.
class
);
if
(
StringUtil
.
isEmpty
(
value
))
{
JedisClusterUtils
.
setJson
(
"BOOK:WEIXINGROUP:GUIDE"
+
weixinGroupId
,
weixinGroupId
,
5
);
...
...
pcloud-service-book/src/main/java/com/pcloud/book/group/facade/impl/GroupQrcodeFacadeImpl.java
View file @
96047b5d
...
...
@@ -61,7 +61,7 @@ public class GroupQrcodeFacadeImpl implements GroupQrcodeFacade {
@GetMapping
(
"addUser"
)
ResponseDto
<?>
addUser
(
@RequestParam
(
"weixinGroupId"
)
String
weixinGroupId
,
@RequestParam
(
"userNumber"
)
Integer
userNumber
)
throws
BizException
{
groupQrcodeBiz
.
addOneUser
(
weixinGroupId
,
userNumber
);
groupQrcodeBiz
.
addOneUser
(
weixinGroupId
,
userNumber
,
null
);
return
new
ResponseDto
<>();
}
}
pcloud-service-book/src/main/java/com/pcloud/book/group/tools/SendWeixinRequestTools.java
View file @
96047b5d
...
...
@@ -146,7 +146,7 @@ public class SendWeixinRequestTools {
@ParamLog
(
"修改微信群名称"
)
public
static
void
sendGuideMessage
(
List
<
ReplyMessageVO
>
replyMessages
,
String
robotId
,
String
weixinGroupId
)
{
JedisClusterUtils
.
del
(
"BOOK:WEIXINGROUP:GUIDEUSER"
+
weixinGroupId
);
//
JedisClusterUtils.del("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId);
if
(
ListUtils
.
isEmpty
(
replyMessages
))
{
return
;
}
...
...
@@ -284,17 +284,17 @@ public class SendWeixinRequestTools {
public
static
void
sendDefaultMessage
(
String
groupName
,
String
robotId
,
String
weixinGroupId
)
{
String
content
=
""
;
List
<
String
>
nickNames
=
JedisClusterUtils
.
getJsonList
(
"BOOK:WEIXINGROUP:GUIDEUSER"
+
weixinGroupId
,
String
.
class
);
if
(!
ListUtils
.
isEmpty
(
nickNames
)){
JedisClusterUtils
.
del
(
"BOOK:WEIXINGROUP:GUIDEUSER"
+
weixinGroupId
);
}
for
(
String
nickName
:
nickNames
)
{
content
=
content
+
"@"
+
nickName
+
" "
;
}
//
List<String> nickNames = JedisClusterUtils.getJsonList("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId, String.class);
//
if(!ListUtils.isEmpty(nickNames)){
//
JedisClusterUtils.del("BOOK:WEIXINGROUP:GUIDEUSER" + weixinGroupId);
//
}
//
for (String nickName : nickNames) {
//
content = content + "@" + nickName + " ";
//
}
if
(
StringUtil
.
isEmpty
(
groupName
))
{
content
=
content
+
"欢迎加入本书!凭以下关键词领取任务或资源:"
;
content
=
"欢迎加入本书!凭以下关键词领取任务或资源:"
;
}
else
{
content
=
content
+
"欢迎加入本书!"
+
groupName
+
"凭以下关键词领取任务或资源:"
;
content
=
"欢迎加入本书!"
+
groupName
+
"凭以下关键词领取任务或资源:"
;
}
SendTextMessageVO
sendTextMessageVO
=
new
SendTextMessageVO
();
sendTextMessageVO
.
setContent
(
content
);
...
...
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