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
5630b5c7
Commit
5630b5c7
authored
Apr 17, 2020
by
黄森林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信登录修复
parent
5bc16d80
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
core-service/src/main/java/com/winsun/item/modular/system/controller/LoginPwdController.java
+3
-2
No files found.
core-service/src/main/java/com/winsun/item/modular/system/controller/LoginPwdController.java
View file @
5630b5c7
...
@@ -106,9 +106,10 @@ public class LoginPwdController extends BaseController {
...
@@ -106,9 +106,10 @@ public class LoginPwdController extends BaseController {
String
url
=
"https://open.weixin.qq.com/connect/oauth2/authorize?"
;
String
url
=
"https://open.weixin.qq.com/connect/oauth2/authorize?"
;
url
+=
"appid="
;
url
+=
"appid="
;
url
+=
APPID
;
url
+=
APPID
;
url
+=
"&redirect_uri="
+
URLEncoder
.
encode
(
"http://hhrcode.winsun-aly.com/#/login
"
,
"UTF-8"
);
//此处和微信会调用的域名相同
url
+=
"&redirect_uri="
+
URLEncoder
.
encode
(
"http://hhrcode.winsun-aly.com/#/login
?state="
+
state
,
"UTF-8"
);
//此处和微信会调用的域名相同
url
+=
"&response_type=code&scope=snsapi_userinfo"
;
url
+=
"&response_type=code&scope=snsapi_userinfo"
;
url
+=
"&state="
+
state
+
"#wechat_redirect"
;
url
+=
"#wechat_redirect"
;
log
.
info
(
url
);
try
{
try
{
response
.
sendRedirect
(
url
);
response
.
sendRedirect
(
url
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
...
...
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