feat:微信小程序登录认证

This commit is contained in:
haoxr 2021-06-11 01:44:20 +08:00
parent 2091712057
commit abc9b901a0
3 changed files with 4 additions and 4 deletions

View File

@ -156,7 +156,7 @@ youlai-mall
### 2. 后台前端启动 ### 2. 后台前端启动
1. 本机安装Python和Node环境 1. 本机安装Node环境
2. npm install 2. npm install
3. npm run dev 3. npm run dev
4. 访问 http://localhost:9527 4. 访问 http://localhost:9527

View File

@ -7,7 +7,7 @@ spring:
cloud: cloud:
nacos: nacos:
discovery: discovery:
server-addr: http://c.youlai.store:8848 server-addr: http://c.youlai.tech:8848
namespace: prod_namespace_id namespace: prod_namespace_id
config: config:
server-addr: ${spring.cloud.nacos.discovery.server-addr} server-addr: ${spring.cloud.nacos.discovery.server-addr}

View File

@ -46,8 +46,8 @@ public class JwtGlobalFilter implements GlobalFilter, Ordered {
// 演示环境禁止删除和修改 // 演示环境禁止删除和修改
if (isDemoEnv if (isDemoEnv
&& HttpMethod.DELETE.toString().equals(request.getMethodValue()) // 删除方法 && (HttpMethod.DELETE.toString().equals(request.getMethodValue()) // 删除方法
&& HttpMethod.PUT.toString().equals(request.getMethodValue()) // 修改方法 || HttpMethod.PUT.toString().equals(request.getMethodValue())) // 修改方法
) { ) {
return ResponseUtils.writeErrorInfo(response, ResultCode.FORBIDDEN_OPERATION); return ResponseUtils.writeErrorInfo(response, ResultCode.FORBIDDEN_OPERATION);
} }