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
QianQiXiang
haoban-manage3.0
Commits
68ab5e8e
Commit
68ab5e8e
authored
Feb 23, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加日志
parent
7e3463d4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
3 deletions
+37
-3
pom.xml
haoban-manage3-web/pom.xml
+10
-3
Config.java
...rc/main/java/com/gic/haoban/manage/web/config/Config.java
+21
-0
ApplicationController.java
...c/haoban/manage/web/controller/ApplicationController.java
+5
-0
app.properties
...an-manage3-web/src/main/resources/META-INF/app.properties
+1
-0
No files found.
haoban-manage3-web/pom.xml
View file @
68ab5e8e
...
...
@@ -231,9 +231,6 @@
<encoding>
UTF-8
</encoding>
<source>
1.8
</source>
<target>
1.8
</target>
<compilerArgs>
<arg>
-parameters
</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
...
...
@@ -271,6 +268,16 @@
</webApp>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.tomcat.maven
</groupId>
<artifactId>
tomcat6-maven-plugin
</artifactId>
<version>
2.2
</version>
<configuration>
<path>
/haoban-manage3-web
</path>
<port>
9907
</port>
<uriEncoding>
UTF-8
</uriEncoding>
</configuration>
</plugin>
</plugins>
</build>
</project>
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/config/Config.java
0 → 100644
View file @
68ab5e8e
package
com
.
gic
.
haoban
.
manage
.
web
.
config
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
/**
* Created by tgs on 2020/2/23.
*/
@Configuration
public
class
Config
{
@Value
(
"${corpid}"
)
private
String
corpid
;
public
String
getCorpid
()
{
return
corpid
;
}
public
void
setCorpid
(
String
corpid
)
{
this
.
corpid
=
corpid
;
}
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/ApplicationController.java
View file @
68ab5e8e
...
...
@@ -8,6 +8,7 @@ import com.gic.haoban.manage.api.dto.*;
import
com.gic.haoban.manage.api.service.WxApplicationApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseApiService
;
import
com.gic.haoban.manage.web.anno.IgnoreLogin
;
import
com.gic.haoban.manage.web.config.Config
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
...
...
@@ -31,6 +32,8 @@ public class ApplicationController extends WebBaseController{
private
WxApplicationApiService
wxApplicationApiService
;
@Autowired
private
WxEnterpriseApiService
wxEnterpriseApiService
;
@Autowired
private
Config
config
;
@RequestMapping
(
"application-list"
)
public
HaobanResponse
applicationList
()
{
...
...
@@ -43,6 +46,8 @@ public class ApplicationController extends WebBaseController{
@IgnoreLogin
public
HaobanResponse
getAuthUrl
(){
//String suiteId = GlobalVar.ctxPropertiesMap.get("suiteId");
log
.
info
(
"config:{}"
,
JSON
.
toJSONString
(
config
));
System
.
out
.
println
(
config
.
getCorpid
());
String
suiteId
=
"ww7d6566614055cf27"
;
log
.
info
(
"应用ID:{}"
,
suiteId
);
String
redictUrl
=
"https://www.gicdev.com/haoban-manage3-web/callback"
;
...
...
haoban-manage3-web/src/main/resources/META-INF/app.properties
0 → 100644
View file @
68ab5e8e
app.id
=
work-weixin
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