Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
ecc93ed9
Commit
ecc93ed9
authored
Feb 15, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加好友队列
parent
7c01d458
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+7
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
ecc93ed9
...
...
@@ -399,7 +399,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
null
;
}
// 加好友量大的迁移到mq2
int
maxCount
=
2
;
int
maxCount
=
800
;
private
boolean
mqCheck
(
QwFrientNoticeDTO
dto
)
{
boolean
flag
=
false
;
Object
obj
=
RedisUtil
.
getCache
(
"dealQywxExternalUserMq2"
)
;
...
...
@@ -412,12 +412,18 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
flag
;
}
}
if
(
null
!=
obj
&&
obj
.
toString
().
equals
(
"0"
))
{
return
false
;
}
TabHaobanWxEnterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpid
)
;
if
(
null
!=
wxEnterprise
)
{
String
wxEnterpriseId
=
wxEnterprise
.
getWxEnterpriseId
()
;
flag
=
this
.
needToMq2
(
wxEnterpriseId
)
;
if
(!
flag
)
{
long
times
=
this
.
getTimes
(
wxEnterpriseId
)
;
if
(
"wp59NLDQAAtTbif_SxAixUQVqMld4vug"
.
equals
(
corpid
))
{
maxCount
=
2
;
}
if
(
times
>
maxCount
)
{
if
(!
needToMq2
(
wxEnterpriseId
))
{
log
.
info
(
"加好友计数发送告警,id={}"
,
wxEnterpriseId
);
...
...
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