Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-slsy
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
xuwenhao
qianhe-slsy
Commits
36c41050
Commit
36c41050
authored
Feb 04, 2024
by
xuwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.4修改
parent
d2eaae42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
qianhe-admin/src/main/resources/application.yml
+11
-1
qianhe-framework/src/main/java/com/qianhe/framework/config/SecurityConfig.java
+2
-1
No files found.
qianhe-admin/src/main/resources/application.yml
View file @
36c41050
...
@@ -19,7 +19,7 @@ ruoyi:
...
@@ -19,7 +19,7 @@ ruoyi:
# 开发环境配置
# 开发环境配置
server
:
server
:
# 服务器的HTTP端口,默认为8080
# 服务器的HTTP端口,默认为8080
port
:
8089
port
:
5125
servlet
:
servlet
:
# 应用的访问路径
# 应用的访问路径
context-path
:
/
context-path
:
/
...
@@ -133,12 +133,22 @@ xss:
...
@@ -133,12 +133,22 @@ xss:
# 订水端小程序
# 订水端小程序
wx
:
wx
:
#测试
appId
:
wxcabea5c944c4327c
appId
:
wxcabea5c944c4327c
appSecret
:
bd486fd54bd1ea5e9b198911d765ce6a
appSecret
:
bd486fd54bd1ea5e9b198911d765ce6a
access-token-uri
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${wx.appId}&secret=${wx.appSecret}
access-token-uri
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${wx.appId}&secret=${wx.appSecret}
#正式
# appId: wx75635671bf9fe9bb
# appSecret: 5ac4f25af14d7cfb3e62870fa1719459
# access-token-uri: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${wx.appId}&secret=${wx.appSecret}
# 送水端小程序
# 送水端小程序
sswx
:
sswx
:
#测试
appId
:
wxc89600b5b0aee68d
appId
:
wxc89600b5b0aee68d
appSecret
:
27ebe3778435c719cc1b97f260b7e026
appSecret
:
27ebe3778435c719cc1b97f260b7e026
access-token-uri
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${sswx.appId}&secret=${sswx.appSecret}
access-token-uri
:
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${sswx.appId}&secret=${sswx.appSecret}
#正式
# appId: wx3c0181d9800dfbf2
# appSecret: d1382
# access-token-uri: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=${sswx.appId}&secret=${sswx.appSecret}
qianhe-framework/src/main/java/com/qianhe/framework/config/SecurityConfig.java
View file @
36c41050
...
@@ -113,7 +113,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
...
@@ -113,7 +113,8 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
).
permitAll
()
.
antMatchers
(
"/login"
,
"/register"
,
"/captchaImage"
).
permitAll
()
//放行订水小程序登录相关接口
//放行订水小程序登录相关接口
.
antMatchers
(
"/wx/getWxLoginInfo/**"
,
"/wx/login/**"
,
"/wx/getPhoneNumber/**"
,
"/wx/updateUser"
).
permitAll
()
// .antMatchers("/wx/getWxLoginInfo/**", "/wx/login/**", "/wx/getPhoneNumber/**","/wx/updateUser").permitAll()
.
antMatchers
(
"/wx/**"
).
permitAll
()
//放行送水小程序登录相关接口
//放行送水小程序登录相关接口
.
antMatchers
(
"/ssWx/getWxLoginInfo/**"
,
"/ssWx/login/**"
,
"/ssWx/getPhoneNumber/**"
,
"/ssWx/updateUser"
).
permitAll
()
.
antMatchers
(
"/ssWx/getWxLoginInfo/**"
,
"/ssWx/login/**"
,
"/ssWx/getPhoneNumber/**"
,
"/ssWx/updateUser"
).
permitAll
()
//通用接口放行
//通用接口放行
...
...
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