Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
e5ad2787
Commit
e5ad2787
authored
Apr 20, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信登录修改
parent
59cf9661
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
core-service/src/main/java/com/winsun/item/modular/system/controller/LoginPwdController.java
+4
-4
No files found.
core-service/src/main/java/com/winsun/item/modular/system/controller/LoginPwdController.java
View file @
e5ad2787
...
...
@@ -292,17 +292,17 @@ public class LoginPwdController extends BaseController {
url
+=
"&secret="
;
url
+=
APPSECRET
;
url
+=
"&code="
+
code
+
"&grant_type=authorization_code"
;
JSONObject
jsonObject
=
null
;
String
jsonObject
=
null
;
try
{
jsonObject
=
HttpHelper
.
do
Get
(
url
);
jsonObject
=
HttpHelper
.
send
Get
(
url
);
}
catch
(
Exception
e
)
{
log
.
error
(
"微信登录获取用户信息失败"
+
e
.
getMessage
(),
e
);
}
if
(
jsonObject
==
null
)
{
return
ResponseData
.
error
(
"微信授权失效,请重新授权!"
);
}
String
openId
=
jsonObject
.
getString
(
"openid"
);
Map
<
String
,
Object
>
map
=
JSON
.
parseObject
(
jsonObject
,
Map
.
class
);
String
openId
=
map
.
get
(
"openid"
).
toString
();
SysUser
sysUser
=
users
.
get
(
0
);
Wrapper
wrapper
=
new
EntityWrapper
<>();
wrapper
.
eq
(
"id"
,
sysUser
.
getId
());
...
...
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