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
7d561d40
Commit
7d561d40
authored
Feb 25, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:好办-登录好友查询更改为从第三方查询
parent
ef8b3201
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+7
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
7d561d40
...
...
@@ -553,7 +553,11 @@ public class StaffApiServiceImpl implements StaffApiService {
logger
.
info
(
"企业不存在:{}:{}"
,
wxEnterpriseId
,
wxOpenUserId
);
return
;
}
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
wxEnterpriseId
,
SecretTypeEnum
.
HAOBAN_HELP
.
getVal
());
if
(
null
==
secretSetting
||
secretSetting
.
getCheckFlag
()
==
0
)
{
logger
.
info
(
"没有配置secret:{}"
,
JSONObject
.
toJSONString
(
enterpriseDTO
));
return
;
}
String
corpid
=
enterpriseDTO
.
getCorpid
();
UserDTO
user
=
qywxUserApiService
.
getWorkWxUser
(
corpid
,
config
.
getWxSuiteid
(),
wxOpenUserId
);
if
(
null
==
user
)
{
...
...
@@ -570,7 +574,8 @@ public class StaffApiServiceImpl implements StaffApiService {
staffService
.
delOtherStaffByWxUserId
(
staff
.
getWxUserId
(),
staff
.
getStaffId
(),
wxEnterpriseId
);
}
staff
=
(
staff
==
null
?
new
TabHaobanStaff
()
:
staff
);
String
userid
=
qywxUserApiService
.
getUseridBymobile
(
corpid
,
config
.
getWxSuiteid
(),
phoneNumber
);
String
userid
=
qywxUserApiService
.
getSelfWxUserIdByPhonenumber
(
corpid
,
secretSetting
.
getSecretVal
(),
phoneNumber
);
logger
.
info
(
"获取到的userid:{}"
,
userid
);
staff
.
setWxUserId
(
userid
);
staff
.
setWxOpenUseId
(
wxOpenUserId
);
...
...
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