mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
feat:微信小程序登录认证
This commit is contained in:
parent
2091712057
commit
abc9b901a0
@ -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
|
||||||
|
@ -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}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user