Browse Source

fix : 调试修改04

bilingfeng 1 year ago
parent
commit
15991d1d0c

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/ManageApplication.java

@@ -23,7 +23,7 @@ public class ManageApplication {
 
 
     public static void main(String[] args) {
     public static void main(String[] args) {
         SpringApplication.run(ManageApplication.class, args);
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 <调试修改03> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <调试修改04> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 2 - 2
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/config/KfMsgWebSocketConfig.java

@@ -19,8 +19,8 @@ import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry
  * @time : 2024-02-23
  * @time : 2024-02-23
  * @description : 客服消息WebSocket配置
  * @description : 客服消息WebSocket配置
  */
  */
-@Configuration
-@EnableWebSocket
+//@Configuration
+//@EnableWebSocket
 public class KfMsgWebSocketConfig implements WebSocketConfigurer {
 public class KfMsgWebSocketConfig implements WebSocketConfigurer {
 
 
     private final KfMsgWebsocketHandler kfMsgWebsocketHandler;
     private final KfMsgWebsocketHandler kfMsgWebsocketHandler;

+ 2 - 2
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/controller/ChoiceController.java

@@ -112,8 +112,8 @@ public class ChoiceController {
     public ResultVO<List<GameCategoryChoiceVO>> gameCategoryChoiceList(HttpServletRequest request) {
     public ResultVO<List<GameCategoryChoiceVO>> gameCategoryChoiceList(HttpServletRequest request) {
 
 
         if (SecurityUtil.getUserId() == 413) {
         if (SecurityUtil.getUserId() == 413) {
-            log.error("----------------> 2222222222222222222, ip : {}, ua : {}",
-                    IpUtil.getRealIp(request), request.getHeader("User-Agent"));
+            log.error("----------------> 2222222222222222222, ip : {}, ua : {}, token : {}",
+                    IpUtil.getRealIp(request), request.getHeader("User-Agent"), SecurityUtil.getToken());
         }
         }
 
 
         return ResultVO.ok(Arrays.stream(GameCategoryEnum.values())
         return ResultVO.ok(Arrays.stream(GameCategoryEnum.values())

+ 2 - 2
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/controller/KfMsgController.java

@@ -66,8 +66,8 @@ public class KfMsgController {
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = String.class)})
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = String.class)})
     public ResultVO<String> list(@Validated @RequestBody KfApiParam param, HttpServletRequest request) {
     public ResultVO<String> list(@Validated @RequestBody KfApiParam param, HttpServletRequest request) {
         if (SecurityUtil.getUserId() == 413) {
         if (SecurityUtil.getUserId() == 413) {
-            log.error("----------------> 2222222222222222222, param : {}, ip : {}, ua : {}",
-                    JsonUtil.toString(param), IpUtil.getRealIp(request), request.getHeader("User-Agent"));
+            log.error("----------------> 2222222222222222222, param : {}, ip : {}, ua : {}, token : {}",
+                    JsonUtil.toString(param), IpUtil.getRealIp(request), request.getHeader("User-Agent"), SecurityUtil.getToken());
         }
         }
         return ResultVO.ok(kfMsgService.kfApi(param));
         return ResultVO.ok(kfMsgService.kfApi(param));
     }
     }