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
63bd123c
Commit
63bd123c
authored
Feb 15, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
加好友队列 See merge request
!960
parents
85371db9
ecc93ed9
Hide 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 @
63bd123c
...
@@ -399,7 +399,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -399,7 +399,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
null
;
return
null
;
}
}
// 加好友量大的迁移到mq2
// 加好友量大的迁移到mq2
int
maxCount
=
2
;
int
maxCount
=
800
;
private
boolean
mqCheck
(
QwFrientNoticeDTO
dto
)
{
private
boolean
mqCheck
(
QwFrientNoticeDTO
dto
)
{
boolean
flag
=
false
;
boolean
flag
=
false
;
Object
obj
=
RedisUtil
.
getCache
(
"dealQywxExternalUserMq2"
)
;
Object
obj
=
RedisUtil
.
getCache
(
"dealQywxExternalUserMq2"
)
;
...
@@ -412,12 +412,18 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -412,12 +412,18 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
flag
;
return
flag
;
}
}
}
}
if
(
null
!=
obj
&&
obj
.
toString
().
equals
(
"0"
))
{
return
false
;
}
TabHaobanWxEnterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpid
)
;
TabHaobanWxEnterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpid
)
;
if
(
null
!=
wxEnterprise
)
{
if
(
null
!=
wxEnterprise
)
{
String
wxEnterpriseId
=
wxEnterprise
.
getWxEnterpriseId
()
;
String
wxEnterpriseId
=
wxEnterprise
.
getWxEnterpriseId
()
;
flag
=
this
.
needToMq2
(
wxEnterpriseId
)
;
flag
=
this
.
needToMq2
(
wxEnterpriseId
)
;
if
(!
flag
)
{
if
(!
flag
)
{
long
times
=
this
.
getTimes
(
wxEnterpriseId
)
;
long
times
=
this
.
getTimes
(
wxEnterpriseId
)
;
if
(
"wp59NLDQAAtTbif_SxAixUQVqMld4vug"
.
equals
(
corpid
))
{
maxCount
=
2
;
}
if
(
times
>
maxCount
)
{
if
(
times
>
maxCount
)
{
if
(!
needToMq2
(
wxEnterpriseId
))
{
if
(!
needToMq2
(
wxEnterpriseId
))
{
log
.
info
(
"加好友计数发送告警,id={}"
,
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