Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
Project
Project
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
竹天卫
tianjin-cement
Commits
53c5de94
Commit
53c5de94
authored
Jan 05, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录接口 accessToken 管理端和小程序端,redis中区分开
parent
a3c1e390
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
495 additions
and
494 deletions
+495
-494
WeiXinService.java
...n/wise/sc/cement/business/service/impl/WeiXinService.java
+8
-7
application.yml
cement-business/src/main/resources/application.yml
+4
-4
cement-business-1.0-SNAPSHOT.jar.original
...business/target/cement-business-1.0-SNAPSHOT.jar.original
+0
-0
application.yml
cement-business/target/classes/application.yml
+4
-4
fastdfs-client.properties
cement-business/target/classes/fastdfs-client.properties
+2
-2
logback-spring.xml
cement-business/target/classes/logback-spring.xml
+1
-1
pom.properties
cement-business/target/maven-archiver/pom.properties
+1
-1
inputFiles.lst
...en-compiler-plugin/compile/default-compile/inputFiles.lst
+470
-470
pom.properties
...ommon/common-swagger/target/maven-archiver/pom.properties
+1
-1
inputFiles.lst
...en-compiler-plugin/compile/default-compile/inputFiles.lst
+2
-2
pom.properties
mybatis-generator/target/maven-archiver/pom.properties
+1
-1
inputFiles.lst
...en-compiler-plugin/compile/default-compile/inputFiles.lst
+1
-1
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/WeiXinService.java
View file @
53c5de94
...
@@ -53,7 +53,8 @@ public class WeiXinService {
...
@@ -53,7 +53,8 @@ public class WeiXinService {
@Value
(
"${weixin.agentSecretPC}"
)
@Value
(
"${weixin.agentSecretPC}"
)
private
String
agentSecretPC
;
private
String
agentSecretPC
;
final
static
String
ACCESS_TOKEN
=
"ACCESS_TOKEN"
;
final
static
String
ACCESS_TOKEN_PC
=
"ACCESS_TOKEN_PC"
;
final
static
String
ACCESS_TOKEN_APP
=
"ACCESS_TOKEN_APP"
;
final
static
String
JSAPITICKET
=
"JSAPITICKET"
;
final
static
String
JSAPITICKET
=
"JSAPITICKET"
;
/**
/**
...
@@ -190,14 +191,14 @@ public class WeiXinService {
...
@@ -190,14 +191,14 @@ public class WeiXinService {
public
String
getToken
()
{
public
String
getToken
()
{
String
accessToken
;
String
accessToken
;
if
(!
redisUtil
.
existsKey
(
ACCESS_TOKEN
))
{
if
(!
redisUtil
.
existsKey
(
ACCESS_TOKEN
_APP
))
{
String
param
=
"corpid=%s&corpsecret=%s"
;
String
param
=
"corpid=%s&corpsecret=%s"
;
param
=
String
.
format
(
param
,
corpId
,
agentSecret
);
param
=
String
.
format
(
param
,
corpId
,
agentSecret
);
JSONObject
jsonObject
=
WeixinInterfaceUtil
.
doGet
(
Global
.
ACCESSTOKENURL
,
param
);
JSONObject
jsonObject
=
WeixinInterfaceUtil
.
doGet
(
Global
.
ACCESSTOKENURL
,
param
);
accessToken
=
jsonObject
.
getString
(
"access_token"
);
accessToken
=
jsonObject
.
getString
(
"access_token"
);
redisUtil
.
setString
(
ACCESS_TOKEN
,
accessToken
,
7100
);
redisUtil
.
setString
(
ACCESS_TOKEN
_APP
,
accessToken
,
7100
);
}
}
return
redisUtil
.
getString
(
ACCESS_TOKEN
)
+
""
;
return
redisUtil
.
getString
(
ACCESS_TOKEN
_APP
)
+
""
;
}
}
//获取accessToken信息 =======管理端
//获取accessToken信息 =======管理端
...
@@ -211,14 +212,14 @@ public class WeiXinService {
...
@@ -211,14 +212,14 @@ public class WeiXinService {
public
String
getPCToken
()
{
public
String
getPCToken
()
{
String
accessToken
;
String
accessToken
;
if
(!
redisUtil
.
existsKey
(
ACCESS_TOKEN
))
{
if
(!
redisUtil
.
existsKey
(
ACCESS_TOKEN
_PC
))
{
String
param
=
"corpid=%s&corpsecret=%s"
;
String
param
=
"corpid=%s&corpsecret=%s"
;
param
=
String
.
format
(
param
,
corpId
,
agentSecretPC
);
param
=
String
.
format
(
param
,
corpId
,
agentSecretPC
);
JSONObject
jsonObject
=
WeixinInterfaceUtil
.
doGet
(
Global
.
ACCESSTOKENURL
,
param
);
JSONObject
jsonObject
=
WeixinInterfaceUtil
.
doGet
(
Global
.
ACCESSTOKENURL
,
param
);
accessToken
=
jsonObject
.
getString
(
"access_token"
);
accessToken
=
jsonObject
.
getString
(
"access_token"
);
redisUtil
.
setString
(
ACCESS_TOKEN
,
accessToken
,
7100
);
redisUtil
.
setString
(
ACCESS_TOKEN
_PC
,
accessToken
,
7100
);
}
}
return
redisUtil
.
getString
(
ACCESS_TOKEN
)
+
""
;
return
redisUtil
.
getString
(
ACCESS_TOKEN
_PC
)
+
""
;
}
}
...
...
cement-business/src/main/resources/application.yml
View file @
53c5de94
...
@@ -42,10 +42,10 @@ mybatis-plus:
...
@@ -42,10 +42,10 @@ mybatis-plus:
#正式服务器
#正式服务器
weixin
:
weixin
:
corpId
:
wwc7ae84e6af6ba921
corpId
:
wwc7ae84e6af6ba921
agentId
:
1000151
agentId
PC
:
1000151
agent
IdPC
:
1000150
agent
SecretPC
:
h4K-GL1y7pCADFZQ7m1tO1GOSa3zU4kGEItFknvwOAg
agent
Secret
:
h4K-GL1y7pCADFZQ7m1tO1GOSa3zU4kGEItFknvwOAg
agent
Id
:
1000150
agentSecret
PC
:
zWIO_kt36d1jta3R76s6WmKFdfs2TuJ1wTQu1IXO0Fc
agentSecret
:
zWIO_kt36d1jta3R76s6WmKFdfs2TuJ1wTQu1IXO0Fc
backUrl
:
https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system
backUrl
:
https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
...
...
cement-business/target/cement-business-1.0-SNAPSHOT.jar.original
View file @
53c5de94
No preview for this file type
cement-business/target/classes/application.yml
View file @
53c5de94
...
@@ -42,10 +42,10 @@ mybatis-plus:
...
@@ -42,10 +42,10 @@ mybatis-plus:
#正式服务器
#正式服务器
weixin
:
weixin
:
corpId
:
wwc7ae84e6af6ba921
corpId
:
wwc7ae84e6af6ba921
agentId
:
1000151
agentId
PC
:
1000151
agent
IdPC
:
1000150
agent
SecretPC
:
h4K-GL1y7pCADFZQ7m1tO1GOSa3zU4kGEItFknvwOAg
agent
Secret
:
h4K-GL1y7pCADFZQ7m1tO1GOSa3zU4kGEItFknvwOAg
agent
Id
:
1000150
agentSecret
PC
:
zWIO_kt36d1jta3R76s6WmKFdfs2TuJ1wTQu1IXO0Fc
agentSecret
:
zWIO_kt36d1jta3R76s6WmKFdfs2TuJ1wTQu1IXO0Fc
backUrl
:
https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system
backUrl
:
https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
systemUrl
:
'
<a
href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwc7ae84e6af6ba921&redirect_uri=https%3a%2f%2fccdcmtl.sinoma-tianjin.com%2flab-system%2f&response_type=code&scope=snsapi_base&state=#wechat_redirect">物化检测流程</a>,'
...
...
cement-business/target/classes/fastdfs-client.properties
View file @
53c5de94
...
@@ -4,7 +4,7 @@ fastdfs.charset=UTF-8
...
@@ -4,7 +4,7 @@ fastdfs.charset=UTF-8
fastdfs.http.tracker_http_port
=
8888
fastdfs.http.tracker_http_port
=
8888
fastdfs.http.anti_steal_token
=
no
fastdfs.http.anti_steal_token
=
no
fastdfs.http.secret_key
=
FastDFS1234567890
fastdfs.http.secret_key
=
FastDFS1234567890
fastdfs.tracker_servers
=
192.168.110.85
:22122
fastdfs.tracker_servers
=
localhost
:22122
#fastdfs.tracker_servers=
192.168.110.85
:22122
#fastdfs.tracker_servers=
localhost
:22122
cement-business/target/classes/logback-spring.xml
View file @
53c5de94
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<contextName>
logback-spring
</contextName>
<contextName>
logback-spring
</contextName>
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 -->
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 -->
<!-- <property name="logging.path" value="./../wise-came/logs"/>--
>
<property
name=
"logging.path"
value=
"./../wise-came/logs"
/
>
<!--0. 日志格式和颜色渲染 -->
<!--0. 日志格式和颜色渲染 -->
<!-- 彩色日志依赖的渲染类 -->
<!-- 彩色日志依赖的渲染类 -->
...
...
cement-business/target/maven-archiver/pom.properties
View file @
53c5de94
#Created by Apache Maven 3.6.
1
#Created by Apache Maven 3.6.
0
version
=
1.0-SNAPSHOT
version
=
1.0-SNAPSHOT
groupId
=
cn.wise.sc.tjcement
groupId
=
cn.wise.sc.tjcement
artifactId
=
cement-business
artifactId
=
cement-business
cement-business/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
View file @
53c5de94
This source diff could not be displayed because it is too large. You can
view the blob
instead.
cement-common/common-swagger/target/maven-archiver/pom.properties
View file @
53c5de94
#Created by Apache Maven 3.6.
1
#Created by Apache Maven 3.6.
0
version
=
1.0-SNAPSHOT
version
=
1.0-SNAPSHOT
groupId
=
cn.wise.sc.tjcement
groupId
=
cn.wise.sc.tjcement
artifactId
=
common-swagger
artifactId
=
common-swagger
cement-common/common-swagger/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
View file @
53c5de94
D:\
JavaProject\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\SwaggerConfig
.java
D:\
idea_workspases\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\PackageInfo
.java
D:\
JavaProject\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\PackageInfo
.java
D:\
idea_workspases\tianjin-cement\cement-common\common-swagger\src\main\java\cn\wise\sc\cement\common\swagger\SwaggerConfig
.java
mybatis-generator/target/maven-archiver/pom.properties
View file @
53c5de94
#Created by Apache Maven 3.6.
1
#Created by Apache Maven 3.6.
0
version
=
1.0-SNAPSHOT
version
=
1.0-SNAPSHOT
groupId
=
cn.wise.sc.tjcement
groupId
=
cn.wise.sc.tjcement
artifactId
=
mybatis-generator
artifactId
=
mybatis-generator
mybatis-generator/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
View file @
53c5de94
D:\
JavaProject
\tianjin-cement\mybatis-generator\src\main\java\cn\wise\sc\cement\mg\GeneratorApplication.java
D:\
idea_workspases
\tianjin-cement\mybatis-generator\src\main\java\cn\wise\sc\cement\mg\GeneratorApplication.java
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