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
2d9f5f1c
Commit
2d9f5f1c
authored
Feb 23, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0
into developer
parents
572dd1c9
95c07348
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+6
-1
WebBaseController.java
...m/gic/haoban/manage/web/controller/WebBaseController.java
+1
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
2d9f5f1c
...
...
@@ -12,6 +12,7 @@ import com.gic.haoban.manage.api.dto.StaffDTO;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.web.anno.IgnoreLogin
;
import
com.gic.haoban.manage.web.auth.AuthRequestUtil
;
import
com.gic.haoban.manage.web.config.Config
;
import
com.gic.haoban.manage.web.errCode.HaoBanErrCode
;
import
com.gic.haoban.manage.web.vo.LoginVO
;
import
com.gic.wechat.api.service.qywx.QywxCorpApiService
;
...
...
@@ -31,6 +32,9 @@ public class LoginController extends WebBaseController{
public
static
final
String
redirectUri
=
"https://www.gicdev.com/haoban-manage3-web/login"
;
@Autowired
private
Config
config
;
@RequestMapping
(
"login"
)
public
HaobanResponse
login
(
String
code
)
{
String
userId
=
qywxCorpApiService
.
getUserInfoSimple
(
siteId
,
code
);
...
...
@@ -48,7 +52,8 @@ public class LoginController extends WebBaseController{
@RequestMapping
(
"get-login-qrcode"
)
public
HaobanResponse
getLoginQrcode
(){
String
url
=
"https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid=wweac4ef962720aa12&redirectUri="
+
redirectUri
+
"&state=web_login@gyoss9&usertype=admin"
;
String
corpid
=
config
.
getCorpid
();
String
url
=
"https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid="
+
corpid
+
"&redirectUri="
+
redirectUri
+
"&state=web_login@gyoss9&usertype=admin"
;
//String url = qywxCorpApiService.getGrantAuthorizationUrl(siteId, redirectUri);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
url
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WebBaseController.java
View file @
2d9f5f1c
...
...
@@ -35,7 +35,7 @@ public class WebBaseController {
public
HaobanResponse
resultResponse
(
HaoBanErrCode
errCode
)
{
return
resultResponse
(
errCode
,
null
,
null
);
}
public
HaobanResponse
resultResponse
(
HaoBanErrCode
errCode
,
String
message
)
{
public
HaobanResponse
resultResponse
(
HaoBanErrCode
errCode
,
String
message
,
Object
data
,
String
detailError
)
{
HaobanResponse
response
=
new
HaobanResponse
();
response
.
setMessage
(
message
);
response
.
setErrorCode
(
errCode
.
getCode
());
...
...
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