Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
b1c664c1
Commit
b1c664c1
authored
Feb 22, 2022
by
李健华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
循环调用方法修改为while方式
parent
792d159c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
WechatFollowServiceImpl.java
...oup/xyqb/service/wechat/impl/WechatFollowServiceImpl.java
+3
-8
No files found.
src/main/java/cn/quantgroup/xyqb/service/wechat/impl/WechatFollowServiceImpl.java
View file @
b1c664c1
...
@@ -95,9 +95,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -95,9 +95,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
// 公众号类型
// 公众号类型
private
final
String
WECHAT_XYQB
=
"xyqb"
;
private
final
String
WECHAT_XYQB
=
"xyqb"
;
// 游标值
private
List
<
String
>
unionIdList
;
private
String
cursorValue
=
""
;
private
String
cursorValue
=
""
;
@PostConstruct
@PostConstruct
...
@@ -111,7 +109,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -111,7 +109,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
departmentUserListUrl
=
"https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s&fetch_child=1"
;
departmentUserListUrl
=
"https://qyapi.weixin.qq.com/cgi-bin/user/simplelist?access_token=%s&department_id=%s&fetch_child=1"
;
//批量获取客户详情
//批量获取客户详情
customerInfoListBatchUrl
=
"https://qyapi.weixin.qq.com/cgi-bin/externalcontact/batch/get_by_user?access_token=%s"
;
customerInfoListBatchUrl
=
"https://qyapi.weixin.qq.com/cgi-bin/externalcontact/batch/get_by_user?access_token=%s"
;
unionIdList
=
new
ArrayList
<>();
}
}
...
@@ -179,7 +176,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -179,7 +176,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
String
period
=
simpleDateFormat
.
format
(
new
Date
());
String
period
=
simpleDateFormat
.
format
(
new
Date
());
// 微信公众号关注数据更新
// 微信公众号关注数据更新
//
executeWechatFollowStatus("", period);
executeWechatFollowStatus
(
""
,
period
);
// 企业微信关注数据更新
// 企业微信关注数据更新
executeEnterpriseFollowStatus
(
""
,
period
);
executeEnterpriseFollowStatus
(
""
,
period
);
}
}
...
@@ -316,9 +313,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -316,9 +313,7 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
// 根据unionid 添加现有指定信息
// 根据unionid 添加现有指定信息
// 判断nextCursor不为空,继续获取更多客户
// 判断nextCursor不为空,继续获取更多客户
log
.
info
(
"customerListResponse--{}"
,
JSONObject
.
toJSONString
(
customerListResponse
));
log
.
info
(
"customerListResponse--{}"
,
JSONObject
.
toJSONString
(
customerListResponse
));
if
(!
""
.
equals
(
customerListResponse
.
getNextCursor
())
&&
!
customerListResponse
.
getExternal_contact_list
().
isEmpty
())
{
cursorValue
=
customerListResponse
.
getNextCursor
();
cursorValue
=
customerListResponse
.
getNextCursor
();
}
}
}
}
}
...
...
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