Prechádzať zdrojové kódy

fix : Websocket调试修改17

bilingfeng 1 rok pred
rodič
commit
31b44f1104

+ 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) {
         SpringApplication.run(ManageApplication.class, args);
-        System.out.println("赞象Manage服务启动成功 <Websocket调试修改16> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <Websocket调试修改17> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/impl/KfSessionUserServiceImpl.java

@@ -77,7 +77,7 @@ public class KfSessionUserServiceImpl extends ServiceImpl<KfSessionUserMapper, K
         log.error("等待消息对象 waitUserMsgBean : {}", JsonUtil.toString(waitUserMsgBean));
 
         //消息内容解析
-        KfWebSocketMsgDTO.MsgContentBean msgContent = BeanUtil.copy(waitUserMsgBean.getContent(), KfWebSocketMsgDTO.MsgContentBean.class);
+        KfWebSocketMsgDTO.MsgContentBean msgContent = JsonUtil.toObj(waitUserMsgBean.getContent(), KfWebSocketMsgDTO.MsgContentBean.class);
 
         log.error("消息内容解析 msgContent : {}", JsonUtil.toString(msgContent));