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
b26f3ba8
Commit
b26f3ba8
authored
Jul 13, 2023
by
王亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused code.
parent
c00cbc54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
WechatFollowServiceImpl.java
...oup/xyqb/service/wechat/impl/WechatFollowServiceImpl.java
+0
-6
No files found.
src/main/java/cn/quantgroup/xyqb/service/wechat/impl/WechatFollowServiceImpl.java
View file @
b26f3ba8
...
@@ -37,7 +37,6 @@ import java.util.stream.Collectors;
...
@@ -37,7 +37,6 @@ import java.util.stream.Collectors;
@Slf4j
@Slf4j
@Service
@Service
public
class
WechatFollowServiceImpl
implements
IWechatFollowService
{
public
class
WechatFollowServiceImpl
implements
IWechatFollowService
{
private
static
final
String
WECHAT_FOLLOW_TOKEN_KEY_PREFIX
=
"wechatFollow:token:"
;
@Value
(
"${wechat.appid}"
)
@Value
(
"${wechat.appid}"
)
private
String
appId
;
private
String
appId
;
@Value
(
"${wechat.secret}"
)
@Value
(
"${wechat.secret}"
)
...
@@ -51,9 +50,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -51,9 +50,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
// 部门
// 部门
@Value
(
"${qywehcat.departmentId}"
)
@Value
(
"${qywehcat.departmentId}"
)
private
Integer
departmentId
;
private
Integer
departmentId
;
private
String
accessTokenUrl
;
private
String
userListUrl
;
private
String
userListUrl
;
private
String
qyAccessTokenUrl
;
private
String
qyAccessTokenUrl
;
...
@@ -107,7 +103,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -107,7 +103,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
@PostConstruct
@PostConstruct
private
void
init
()
{
private
void
init
()
{
// 公众号
// 公众号
accessTokenUrl
=
String
.
format
(
"https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s"
,
appId
,
secret
);
userListUrl
=
"https://api.weixin.qq.com/cgi-bin/user/get?access_token=%s&next_openid=%s"
;
userListUrl
=
"https://api.weixin.qq.com/cgi-bin/user/get?access_token=%s&next_openid=%s"
;
// 企业微信
// 企业微信
qyAccessTokenUrl
=
String
.
format
(
"https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s"
,
corpid
,
qySecret
);
qyAccessTokenUrl
=
String
.
format
(
"https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=%s&corpsecret=%s"
,
corpid
,
qySecret
);
...
@@ -210,7 +205,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
...
@@ -210,7 +205,6 @@ public class WechatFollowServiceImpl implements IWechatFollowService {
private
JsonResult
executeEnterpriseFollowStatus
(
String
s
,
String
period
)
{
private
JsonResult
executeEnterpriseFollowStatus
(
String
s
,
String
period
)
{
try
{
try
{
// String response = httpService.get(qyAccessTokenUrl);
String
response
=
httpService
.
get
(
msgEnterpriseToken
);
String
response
=
httpService
.
get
(
msgEnterpriseToken
);
if
(
StringUtils
.
isEmpty
(
response
))
{
if
(
StringUtils
.
isEmpty
(
response
))
{
log
.
info
(
"请求消息中心企业微信Token为空---{}"
,
response
);
log
.
info
(
"请求消息中心企业微信Token为空---{}"
,
response
);
...
...
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