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
7df5e79b
Commit
7df5e79b
authored
Nov 23, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
76c49cde
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+3
-3
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+4
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
7df5e79b
...
@@ -522,14 +522,14 @@ public class WxEnterpriseController extends WebBaseController{
...
@@ -522,14 +522,14 @@ public class WxEnterpriseController extends WebBaseController{
Integer
dayCount
=
RedisUtil
.
getCache
(
dayKey
)
==
null
?
0
:
Integer
.
parseInt
(
RedisUtil
.
getCache
(
dayKey
).
toString
());
Integer
dayCount
=
RedisUtil
.
getCache
(
dayKey
)
==
null
?
0
:
Integer
.
parseInt
(
RedisUtil
.
getCache
(
dayKey
).
toString
());
Integer
monthCount
=
RedisUtil
.
getCache
(
monthKey
)
==
null
?
0
:
Integer
.
parseInt
(
RedisUtil
.
getCache
(
monthKey
).
toString
());
Integer
monthCount
=
RedisUtil
.
getCache
(
monthKey
)
==
null
?
0
:
Integer
.
parseInt
(
RedisUtil
.
getCache
(
monthKey
).
toString
());
if
(
dayCount
>=
1
){
if
(
dayCount
>=
1
){
return
resultResponse
(
HaoBanErrCode
.
ERR_
0
,
"一天只能刷新1次"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_
100019
);
}
}
if
(
monthCount
>=
3
){
if
(
monthCount
>=
3
){
return
resultResponse
(
HaoBanErrCode
.
ERR_
0
,
"一个月只能刷新3次"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_
100020
);
}
}
String
taskId
=
dealSyncOperationApiService
.
createWxFriendTask
(
wxEnterpriseId
,
"刷新企微好友"
,
login
.
getStaffDTO
().
getStaffId
(),
"刷新企微好友"
);
String
taskId
=
dealSyncOperationApiService
.
createWxFriendTask
(
wxEnterpriseId
,
"刷新企微好友"
,
login
.
getStaffDTO
().
getStaffId
(),
"刷新企微好友"
);
if
(
StringUtils
.
isEmpty
(
taskId
)){
if
(
StringUtils
.
isEmpty
(
taskId
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_
0
,
"创建任务失败"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_
100021
);
}
}
dealSyncOperationApiService
.
dealWxFriendClerk
(
taskId
,
wxEnterpriseId
);
dealSyncOperationApiService
.
dealWxFriendClerk
(
taskId
,
wxEnterpriseId
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
RedisUtil
.
setCache
(
dayKey
,
dayCount
+
1
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
7df5e79b
...
@@ -107,6 +107,10 @@ public enum HaoBanErrCode {
...
@@ -107,6 +107,10 @@ public enum HaoBanErrCode {
ERR_100017
(
100017
,
"secret已经设置过"
),
ERR_100017
(
100017
,
"secret已经设置过"
),
ERR_100018
(
100018
,
"企业不存在"
),
ERR_100018
(
100018
,
"企业不存在"
),
ERR_100019
(
100019
,
"一天只能刷新1次"
),
ERR_100020
(
100020
,
"一个月只能刷新3次"
),
ERR_100021
(
100021
,
"创建任务失败"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_DEFINE
(-
888
,
"自定义错误"
),
ERR_OTHER
(-
999
,
"未知错误code"
);
ERR_OTHER
(-
999
,
"未知错误code"
);
private
int
code
;
private
int
code
;
...
...
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