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
8775ca73
Commit
8775ca73
authored
Oct 08, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
2eb54fde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
QwFriendApiServiceImpl.java
...nage/service/service/out/impl/QwFriendApiServiceImpl.java
+8
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QwFriendApiServiceImpl.java
View file @
8775ca73
...
...
@@ -33,6 +33,7 @@ import com.gic.wechat.api.service.qywx.QywxExternalUserService;
public
class
QwFriendApiServiceImpl
implements
QwFriendApiService
{
private
static
final
Logger
log
=
LogManager
.
getLogger
(
QwFriendApiService
.
class
);
private
static
final
int
subjectType
=
1
;
@Autowired
private
EnterpriseUseForbidService
enterpriseUseForbidService
;
...
...
@@ -44,6 +45,7 @@ public class QwFriendApiServiceImpl implements QwFriendApiService {
private
WxEnterpriseService
wxEnterpriseService
;
@Autowired
private
Config
config
;
@Override
public
ServiceResponse
<
Map
<
String
,
String
>>
pendingIdCheck
(
String
enterpriseId
,
String
unionid
,
String
openid
,
...
...
@@ -56,9 +58,10 @@ public class QwFriendApiServiceImpl implements QwFriendApiService {
WxEnterpriseQwDTO
qwDTO
=
corpidResp
.
getResult
();
String
corpid
=
qwDTO
.
getThirdCorpid
();
ServiceResponse
<
PendingIdDTO
>
wxResp
=
this
.
qywxExternalUserService
.
unionidToExternalUserid
(
corpid
,
suiteid
,
unionid
,
openid
,
0
);
unionid
,
openid
,
subjectType
);
Map
<
String
,
String
>
retMap
=
new
HashMap
<>();
StringBuilder
sb
=
new
StringBuilder
();
String
url
=
"https://open.work.weixin.qq.com/devtool/query?e="
;
String
result
=
""
;
String
wxCode
=
"0"
;
String
wxaCode
=
"0"
;
...
...
@@ -66,17 +69,17 @@ public class QwFriendApiServiceImpl implements QwFriendApiService {
result
=
"ok"
;
}
else
{
result
=
wxResp
.
getCode
();
wx
Code
=
result
;
wx
aCode
=
url
+
result
;
}
retMap
.
put
(
"wxCode"
,
wxCode
);
sb
.
append
(
"服务号-"
).
append
(
result
).
append
(
","
);
ServiceResponse
<
PendingIdDTO
>
wxaResp
=
this
.
qywxExternalUserService
.
unionidToExternalUserid
(
corpid
,
suiteid
,
unionid
,
wxaOpenid
,
0
);
unionid
,
wxaOpenid
,
subjectType
);
if
(
wxaResp
.
isSuccess
())
{
result
=
"ok"
;
}
else
{
result
=
wxResp
.
getCode
();
wxaCode
=
result
;
wxaCode
=
url
+
result
;
}
sb
.
append
(
"小程序-"
).
append
(
result
);
retMap
.
put
(
"remark"
,
sb
.
toString
());
...
...
@@ -100,7 +103,7 @@ public class QwFriendApiServiceImpl implements QwFriendApiService {
}
String
corpid
=
qwDTO
.
getThirdCorpid
();
ServiceResponse
<
PendingIdDTO
>
qwResp
=
this
.
qywxExternalUserService
.
unionidToExternalUserid
(
corpid
,
suiteid
,
unionid
,
openid
,
0
);
unionid
,
openid
,
subjectType
);
QwTimesUtils
.
addTimes
(
wxEnterpriseId
,
QwInterfaceLimitEnum
.
GET_PENDING_ID
);
log
.
info
(
"Unionid获取pendingid,参数={},{},返回={}"
,
unionid
,
openid
,
JSON
.
toJSONString
(
qwResp
));
if
(!
qwResp
.
isSuccess
())
{
...
...
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