diff --git a/README.md b/README.md index eca57338a..a7eb5ce5c 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ youlai-mall ### 2. 后台前端启动 -1. 本机安装Python和Node环境 +1. 本机安装Node环境 2. npm install 3. npm run dev 4. 访问 http://localhost:9527 diff --git a/mall-sms/sms-boot/src/main/resources/bootstrap-prod.yml b/mall-sms/sms-boot/src/main/resources/bootstrap-prod.yml index 0092d27bb..65e42f012 100644 --- a/mall-sms/sms-boot/src/main/resources/bootstrap-prod.yml +++ b/mall-sms/sms-boot/src/main/resources/bootstrap-prod.yml @@ -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} diff --git a/youlai-gateway/src/main/java/com/youlai/gateway/security/JwtGlobalFilter.java b/youlai-gateway/src/main/java/com/youlai/gateway/security/JwtGlobalFilter.java index 593cd353c..96a7b0cde 100644 --- a/youlai-gateway/src/main/java/com/youlai/gateway/security/JwtGlobalFilter.java +++ b/youlai-gateway/src/main/java/com/youlai/gateway/security/JwtGlobalFilter.java @@ -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); }