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
2b73742f
Commit
2b73742f
authored
Mar 12, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加好友限制重试次数
parent
28324b54
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
MemberUnionidRelatedDTO.java
...om/gic/haoban/manage/api/dto/MemberUnionidRelatedDTO.java
+10
-0
QwFrientNoticeDTO.java
...java/com/gic/haoban/manage/api/dto/QwFrientNoticeDTO.java
+11
-1
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+4
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/MemberUnionidRelatedDTO.java
View file @
2b73742f
...
@@ -52,8 +52,18 @@ public class MemberUnionidRelatedDTO implements Serializable{
...
@@ -52,8 +52,18 @@ public class MemberUnionidRelatedDTO implements Serializable{
private
String
wxUserId
;
private
String
wxUserId
;
private
int
retryTimes
;
private
boolean
isFlush
=
false
;
private
boolean
isFlush
=
false
;
public
int
getRetryTimes
()
{
return
retryTimes
;
}
public
void
setRetryTimes
(
int
retryTimes
)
{
this
.
retryTimes
=
retryTimes
;
}
public
String
getWxUserId
()
{
public
String
getWxUserId
()
{
return
wxUserId
;
return
wxUserId
;
}
}
...
...
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/QwFrientNoticeDTO.java
View file @
2b73742f
...
@@ -50,7 +50,17 @@ public class QwFrientNoticeDTO implements Serializable {
...
@@ -50,7 +50,17 @@ public class QwFrientNoticeDTO implements Serializable {
private
String
changeType
;
private
String
changeType
;
// 是否从自建应用下的回调
// 是否从自建应用下的回调
private
int
selfCallback
=
0
;
private
int
selfCallback
=
0
;
private
int
retryTimes
;
public
int
getRetryTimes
()
{
return
retryTimes
;
}
public
void
setRetryTimes
(
int
retryTimes
)
{
this
.
retryTimes
=
retryTimes
;
}
public
int
getSelfCallback
()
{
public
int
getSelfCallback
()
{
return
selfCallback
;
return
selfCallback
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
2b73742f
...
@@ -926,7 +926,10 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -926,7 +926,10 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
else
if
(
"1"
.
equals
(
unionIdJson
))
{
}
else
if
(
"1"
.
equals
(
unionIdJson
))
{
log
.
info
(
"接口调用被限制"
);
log
.
info
(
"接口调用被限制"
);
dto
.
setWxUserId
(
wxUserId
);
dto
.
setWxUserId
(
wxUserId
);
this
.
qywxErrorLogService
.
addFriendErrLog
(
wxEnterpriseId
,
JSONObject
.
toJSONString
(
dto
),
4
,
dto
.
getExternalUserid
());
dto
.
setRetryTimes
(
dto
.
getRetryTimes
()+
1
);
if
(
dto
.
getRetryTimes
()<=
3
)
{
this
.
qywxErrorLogService
.
addFriendErrLog
(
wxEnterpriseId
,
JSONObject
.
toJSONString
(
dto
),
4
,
dto
.
getExternalUserid
());
}
HBQwMonitorUtils
.
addForFriend
(
1
);
HBQwMonitorUtils
.
addForFriend
(
1
);
throw
new
WxApiLimitException
(
"getCorpSelfExternalUseridInfo接口调用被限制"
);
throw
new
WxApiLimitException
(
"getCorpSelfExternalUseridInfo接口调用被限制"
);
}
}
...
...
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