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
1
Merge Requests
1
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
851cfb5f
Commit
851cfb5f
authored
Feb 22, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加日志
parent
25971837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+3
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
851cfb5f
...
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import
java.util.List
;
import
com.gic.haoban.common.utils.GlobalVar
;
import
com.gic.haoban.manage.web.anno.IgnoreLogin
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
...
...
@@ -32,6 +33,7 @@ public class ApplicationController extends WebBaseController{
}
@RequestMapping
(
"get-auth-url"
)
@IgnoreLogin
public
HaobanResponse
getAuthUrl
(){
String
suiteId
=
GlobalVar
.
ctxPropertiesMap
.
get
(
"suiteId"
);
log
.
info
(
"应用ID:{}"
,
suiteId
);
...
...
@@ -41,6 +43,7 @@ public class ApplicationController extends WebBaseController{
}
@RequestMapping
(
"callback"
)
@IgnoreLogin
public
HaobanResponse
callback
(
String
code
){
String
suiteId
=
GlobalVar
.
ctxPropertiesMap
.
get
(
"suiteId"
);
String
result
=
this
.
qywxSuiteApiService
.
corpAuth
(
suiteId
,
code
);
...
...
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