wangjiang988 5 tahun lalu
induk
melakukan
ec0daa0dc4

+ 1 - 1
src/main/java/platform/modules/oauth/LoginCallback.java

@@ -66,7 +66,7 @@ public class LoginCallback extends BaseController {
         tokenString = tokenString.replace("Bearer ", "");
         log.info("tokenstring: {}", tokenString);
         CookieUtil.createWebCookie(response, "token", tokenString, 7200);
-        CookieUtil.createWebCookie(response, "user_id", user.getId().toString(), 7200);
+//        CookieUtil.createWebCookie(response, "user_id", user.getId().toString(), 7200);
         return "redirect:/admin/home";
 
 }

+ 4 - 2
src/main/resources/application.yml

@@ -15,11 +15,11 @@ spring:
   #激活哪一个环境的配置文件
   profiles:
 
-    active: dev
+#    active: dev
 #    active: test
 #    active: aliyun
 #    active: vpn
-#    active: prod_in
+    active: prod_in
 #    active: prod_out
 #    active: prod_test
 
@@ -157,7 +157,9 @@ spring:
   profiles: dev
   #数据源
   datasource:
+#    url: jdbc:mysql://192.168.1.115:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
     url: jdbc:mysql://222.92.16.3:33061/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
+#    url: jdbc:mysql://10.44.104.42:3306/service_platform?useUnicode=true&characterEncoding=utf-8&useSSL=true&autoReconnect=true&allowMultiQueries=true
     username: root
     password: ${password}
   #redis