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
5c65212f
Commit
5c65212f
authored
Jul 08, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature_0711' into developer
parents
85f27fd8
e6ce306b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+2
-2
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
5c65212f
...
...
@@ -2130,9 +2130,9 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
boolean
flag
=
qywxUserApiService
.
finishOpenidMigration
(
corpid
,
serviceCorpid
,
tabHaobanWxApplication
.
getAgentId
(),
openidType
);
if
(
flag
)
{
wxApplicationMapper
.
updateCorpidById
(
tabHaobanWxApplication
.
getWxApplicationId
(),
openCorpid
);
wxEnterpriseService
.
updateUseridFlagById
(
1
,
openCorpid
,
wxEnterpriseId
);
wxEnterpriseService
.
updateUseridFlagById
(
1
,
null
,
wxEnterpriseId
);
}
else
{
wxEnterpriseService
.
updateUseridFlagById
(
3
,
openCorpid
,
wxEnterpriseId
);
wxEnterpriseService
.
updateUseridFlagById
(
3
,
null
,
wxEnterpriseId
);
}
String
lockKey
=
"updateNewUseridCorpid_"
+
wxEnterpriseId
;
RedisUtil
.
unlock
(
lockKey
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
5c65212f
...
...
@@ -106,6 +106,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
@RequestMapping
(
value
=
"get-info-by-code"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@IgnoreLogin
public
HaobanResponse
getInfoByCode
(
String
code
)
{
logger
.
info
(
"code:{}"
,
code
);
String
userDTOJson
=
qywxCorpApiService
.
getCodeSession
(
config
.
getWxSuiteid
(),
code
);
// {"errcode":0,"corpid":"wweac4ef962720aa12","session_key":"oNKOu4tDcnTWdj4wOg75YQ==","errmsg":"ok",
// "open_userid":"wo59NLDQAAxeJ-Nr7_vwkZVc7QOG73PQ","userid":"xugaohua","deviceid":"0BB1D1FA-C5A2-4BDD-80A2-33B6BB230F8A"}
...
...
@@ -114,7 +115,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
if
(
user
==
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
}
String
userId
=
user
.
get
U
serid
();
String
userId
=
user
.
get
Open_u
serid
();
String
corpId
=
user
.
getCorpid
();
WxEnterpriseDTO
enterprise
=
wxEnterpriseApiService
.
getEnterpriseBycorpId
(
corpId
);
StaffDTO
loginStaff
=
null
;
...
...
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