Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-miniappserver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit acb3eb70
authored
Jul 21, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新用户微信信息
1 parent
44fce075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
src/main/java/cn/com/glsx/app/modules/ThirdLoginController.java
src/main/java/cn/com/glsx/app/modules/ThirdLoginController.java
View file @
acb3eb7
...
@@ -50,9 +50,7 @@ public class ThirdLoginController {
...
@@ -50,9 +50,7 @@ public class ThirdLoginController {
@GetMapping
(
value
=
"/wechatAuth"
)
@GetMapping
(
value
=
"/wechatAuth"
)
public
R
wechatAuth
(
@RequestParam
String
code
,
@RequestParam
Integer
accessMode
)
throws
WxErrorException
{
public
R
wechatAuth
(
@RequestParam
String
code
,
@RequestParam
Integer
accessMode
)
throws
WxErrorException
{
//获取openId、unionid、session_key
//获取openId、unionid、session_key
// WxMaJscode2SessionResult sessionInfo = wxMaService.getUserService().getSessionInfo(code);
WxMaJscode2SessionResult
sessionInfo
=
wxMaService
.
getUserService
().
getSessionInfo
(
code
);
WxMaJscode2SessionResult
sessionInfo
=
new
WxMaJscode2SessionResult
();
sessionInfo
.
setOpenid
(
"omyVF5Hr_i_SEeFcwRIw9Y7hhzZ4"
);
log
.
info
(
"微信code[{}]获取的Session信息为{}"
,
code
,
JSONUtil
.
toJsonStr
(
sessionInfo
));
log
.
info
(
"微信code[{}]获取的Session信息为{}"
,
code
,
JSONUtil
.
toJsonStr
(
sessionInfo
));
UserAuthRel
authRel
=
loginService
.
wechatAuth
(
sessionInfo
,
accessMode
);
UserAuthRel
authRel
=
loginService
.
wechatAuth
(
sessionInfo
,
accessMode
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment