Эх сурвалжийг харах

1.修改线上数据库信息

slambb 2 жил өмнө
parent
commit
a77464f848

+ 2 - 0
src/main/java/com/YuyeTech/TPlat/game/controller/LoginController.java

@@ -842,6 +842,8 @@ public class LoginController {
 //            Integer expire = RedisConstant.EXPIRE;//过期时间
 //            redisTemplate.expire(String.format(RedisConstant.TOKEN_PREFIX, token), expire, TimeUnit.SECONDS);
 //        }
+        //todo 假如删除了用户的main_info 信息(正常流程是不会删除),会导致客户的一直判断跳转新用户界面,
+        //     如果需要清空用户信息,清除main_info 信息后,要删除对应的token值,
         LoginVO loginVO = new LoginVO();
         loginVO.setNewUser(bUserInfoByUserId(userId));
         return ResultVOUtil.success(loginVO);

+ 3 - 3
src/main/resources/application-prd.yml

@@ -4,9 +4,9 @@ spring:
       on-profile: prd #生产环境
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://172.17.16.9:3306/TPlat?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&useSSL=false&serverTimezone=GMT%2b8 #&serverTimezone=UTC
-    username: root
-    password: "YuyeTech9527" # "abc123456abc" "!@#ABC456"
+    url: jdbc:mysql://127.0.0.1:3306/tplat?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&useSSL=false&serverTimezone=GMT%2b8 #&serverTimezone=UTC
+    username: TPlat
+    password: "EJLdWybzbWkGZ8bi" # "abc123456abc" "!@#ABC456"
 
     hikari:
       minimum-idle: 5

+ 1 - 1
src/main/resources/application.yml

@@ -1,6 +1,6 @@
 spring:
   profiles:
-    active: dev
+    active: prd
   application:
     name: TPlat