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
0ee65315
Commit
0ee65315
authored
Apr 18, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自建接口调整
parent
c39600d3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
WelcomeSendServiceImpl.java
...n/manage/service/service/impl/WelcomeSendServiceImpl.java
+1
-1
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+12
-2
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+15
-3
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WelcomeSendServiceImpl.java
View file @
0ee65315
...
...
@@ -391,7 +391,7 @@ public class WelcomeSendServiceImpl implements WelcomeSendService {
private
String
getExternalUserName
(
WxEnterpriseQwDTO
qwDTO
,
String
externalUserId
)
{
log
.
info
(
"查询好友详情,externalUserId={},{}"
,
externalUserId
,
qwDTO
.
getWxSecurityType
());
String
userInfo
=
null
;
if
(
qwDTO
.
getWxSecurityType
()==
5
)
{
if
(
qwDTO
.
isSelf
()
)
{
userInfo
=
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
);
}
else
{
userInfo
=
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
0ee65315
...
...
@@ -1282,7 +1282,12 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
null
;
}
String
wxOpenUseId
=
tabHaobanStaff
.
getWxOpenUseId
();
String
uJ
=
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
String
uJ
=
null
;
if
(
qwDTO
.
isSelf
())
{
uJ
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
)
;
}
else
{
uJ
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
}
if
(
StringUtils
.
isBlank
(
uJ
))
{
log
.
info
(
"好友不存在"
);
return
null
;
...
...
@@ -1632,7 +1637,12 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
log
.
info
(
"企业不存在"
);
return
null
;
}
String
uJ
=
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
String
uJ
=
null
;
if
(
qwDTO
.
isSelf
())
{
uJ
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
)
;
}
else
{
uJ
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
}
if
(
StringUtils
.
isBlank
(
uJ
))
{
log
.
info
(
"好友不存在"
);
return
null
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
0ee65315
...
...
@@ -460,7 +460,12 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
//查询外部联系人
String
wxSuiteid
=
config
.
getWxSuiteid
();
String
externalUseridInfo
=
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
wxSuiteid
,
externalUserId
);
String
externalUseridInfo
=
null
;
if
(
qwDTO
.
isSelf
())
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
)
;
}
else
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
wxSuiteid
,
externalUserId
);
}
if
(
StringUtils
.
isBlank
(
externalUseridInfo
))
{
logger
.
info
(
"好友不存在"
);
resp
.
setCode
(
3
);
...
...
@@ -580,7 +585,12 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
//查询外部联系人
String
externalUseridInfo
=
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
()
,
config
.
getWxSuiteid
(),
externalUserId
);
String
externalUseridInfo
=
null
;
if
(
qwDTO
.
isSelf
())
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
)
;
}
else
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
}
if
(
StringUtils
.
isBlank
(
externalUseridInfo
))
{
logger
.
info
(
"好友不存在"
);
resp
.
setCode
(
2
);
...
...
@@ -950,7 +960,9 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
if
(
StringUtils
.
isNotBlank
(
needDelTags
))
{
needDelTagList
=
Arrays
.
asList
(
needDelTags
.
split
(
","
));
}
QywxResponseDTO
responseDTO
=
qywxUserApiService
.
markTag
(
corpid
,
suiteId
,
wxUserId
,
externalUserId
,
needSetTagList
,
needDelTagList
);
TabHaobanWxEnterprise
wxEnterprise
=
this
.
wxEnterpriseService
.
getEnterpriseBycorpId
(
corpid
)
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterprise
.
getWxEnterpriseId
())
;
QywxResponseDTO
responseDTO
=
qywxUserApiService
.
markTag
(
corpid
,
QwUtils
.
getSecret
(
qwDTO
,
config
.
getWxSuiteid
()),
wxUserId
,
externalUserId
,
needSetTagList
,
needDelTagList
,
qwDTO
.
isSelf
());
logger
.
info
(
"操作返回:{}"
,
JSONObject
.
toJSONString
(
responseDTO
));
if
(
responseDTO
.
getErrcode
()
!=
0
)
{
logger
.
info
(
"权限不对,重试三次:{},{}"
,
wxUserId
,
externalUserId
);
...
...
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