mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 20:54:26 +08:00
feat:微信小程序登录认证
This commit is contained in:
parent
2091712057
commit
abc9b901a0
@ -156,7 +156,7 @@ youlai-mall
|
||||
|
||||
### 2. 后台前端启动
|
||||
|
||||
1. 本机安装Python和Node环境
|
||||
1. 本机安装Node环境
|
||||
2. npm install
|
||||
3. npm run dev
|
||||
4. 访问 http://localhost:9527
|
||||
|
@ -7,7 +7,7 @@ spring:
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: http://c.youlai.store:8848
|
||||
server-addr: http://c.youlai.tech:8848
|
||||
namespace: prod_namespace_id
|
||||
config:
|
||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||
|
@ -46,8 +46,8 @@ public class JwtGlobalFilter implements GlobalFilter, Ordered {
|
||||
|
||||
// 演示环境禁止删除和修改
|
||||
if (isDemoEnv
|
||||
&& HttpMethod.DELETE.toString().equals(request.getMethodValue()) // 删除方法
|
||||
&& HttpMethod.PUT.toString().equals(request.getMethodValue()) // 修改方法
|
||||
&& (HttpMethod.DELETE.toString().equals(request.getMethodValue()) // 删除方法
|
||||
|| HttpMethod.PUT.toString().equals(request.getMethodValue())) // 修改方法
|
||||
) {
|
||||
return ResponseUtils.writeErrorInfo(response, ResultCode.FORBIDDEN_OPERATION);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user