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
02489a39
Commit
02489a39
authored
Aug 19, 2019
by
裴大威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ruansiyuan'
parents
f8cae75d
4fa2d126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
BookGuideBizImpl.java
...a/com/pcloud/book/keywords/biz/impl/BookGuideBizImpl.java
+19
-19
No files found.
pcloud-service-book/src/main/java/com/pcloud/book/keywords/biz/impl/BookGuideBizImpl.java
View file @
02489a39
...
@@ -154,9 +154,9 @@ public class BookGuideBizImpl implements BookGuideBiz {
...
@@ -154,9 +154,9 @@ public class BookGuideBizImpl implements BookGuideBiz {
log
.
info
(
"[同意加好友发送欢迎语] 拉群 没有找到群 bookGroupClassifyBiz.getGroupQrcode4ClassifyWechat JoinGroupCipherDTO :{}"
,
dto
);
log
.
info
(
"[同意加好友发送欢迎语] 拉群 没有找到群 bookGroupClassifyBiz.getGroupQrcode4ClassifyWechat JoinGroupCipherDTO :{}"
,
dto
);
return
;
return
;
}
}
// 生产环境限制30,其它5和10
// 生产环境限制30,其它5和10
,全部使用群链接
final
boolean
isPro
=
"pro"
.
equalsIgnoreCase
(
BookProps
.
getSystemEnv
());
//
final boolean isPro = "pro".equalsIgnoreCase(BookProps.getSystemEnv());
if
((!
StringUtil
.
isBlank
(
num
)
&&
Integer
.
parseInt
(
num
)
>=
(
isPro
?
30
:
5
))
||
peopleCounts
>=
(
isPro
?
30
:
10
))
{
//
if ((!StringUtil.isBlank(num) && Integer.parseInt(num) >= (isPro ? 30 : 5)) || peopleCounts >= (isPro ? 30 : 10)) {
SendGroupInviteVO
sendGroupInviteVO
=
new
SendGroupInviteVO
();
SendGroupInviteVO
sendGroupInviteVO
=
new
SendGroupInviteVO
();
sendGroupInviteVO
.
setAltId
(
agreeAddUserDTO
.
getRobotWxId
());
sendGroupInviteVO
.
setAltId
(
agreeAddUserDTO
.
getRobotWxId
());
sendGroupInviteVO
.
setWxId
(
agreeAddUserDTO
.
getUserWxId
());
sendGroupInviteVO
.
setWxId
(
agreeAddUserDTO
.
getUserWxId
());
...
@@ -166,22 +166,22 @@ public class BookGuideBizImpl implements BookGuideBiz {
...
@@ -166,22 +166,22 @@ public class BookGuideBizImpl implements BookGuideBiz {
// 进群之后更新群qrCodeId
// 进群之后更新群qrCodeId
updateQrcodeForCipher
(
wxGroupId
,
cipher
,
agreeAddUserDTO
.
getUserWxId
());
updateQrcodeForCipher
(
wxGroupId
,
cipher
,
agreeAddUserDTO
.
getUserWxId
());
return
;
return
;
}
//
}
AddToGroupVO
vo1
=
new
AddToGroupVO
();
//
AddToGroupVO vo1 = new AddToGroupVO();
vo1
.
setWxGroupId
(
wxGroupId
);
//
vo1.setWxGroupId(wxGroupId);
vo1
.
setWxId
(
agreeAddUserDTO
.
getUserWxId
());
//
vo1.setWxId(agreeAddUserDTO.getUserWxId());
vo1
.
setAltId
(
agreeAddUserDTO
.
getRobotWxId
());
//
vo1.setAltId(agreeAddUserDTO.getRobotWxId());
vo1
.
setIp
(
agreeAddUserDTO
.
getIp
());
//
vo1.setIp(agreeAddUserDTO.getIp());
log
.
info
(
"[同意加好友发送欢迎语 拉群] AddToGroupVO :{}"
,
vo1
);
//
log.info("[同意加好友发送欢迎语 拉群] AddToGroupVO :{}", vo1);
WxGroupSDK
.
addToGroup
(
vo1
);
//
WxGroupSDK.addToGroup(vo1);
// 进群之后更新群qrCodeId
//
// 进群之后更新群qrCodeId
updateQrcodeForCipher
(
wxGroupId
,
cipher
,
agreeAddUserDTO
.
getUserWxId
());
//
updateQrcodeForCipher(wxGroupId, cipher, agreeAddUserDTO.getUserWxId());
// 拉一次+1
//
// 拉一次+1
if
(
StringUtil
.
isBlank
(
num
))
{
//
if (StringUtil.isBlank(num)) {
JedisClusterUtils
.
getSet
(
BookConstant
.
WXGROUP_ADD_USER_NUM
+
agreeAddUserDTO
.
getRobotWxId
(),
"1"
,
3600
*
24
);
//
JedisClusterUtils.getSet(BookConstant.WXGROUP_ADD_USER_NUM + agreeAddUserDTO.getRobotWxId(), "1", 3600 * 24);
}
else
{
//
} else {
JedisClusterUtils
.
incr
(
BookConstant
.
WXGROUP_ADD_USER_NUM
+
agreeAddUserDTO
.
getRobotWxId
());
//
JedisClusterUtils.incr(BookConstant.WXGROUP_ADD_USER_NUM + agreeAddUserDTO.getRobotWxId());
}
//
}
}
}
@ParamLog
(
"进群之后更新群qrCodeId"
)
@ParamLog
(
"进群之后更新群qrCodeId"
)
...
...
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