Browse Source

fix : Websocket图片消息处理22

bilingfeng 1 year ago
parent
commit
fb00bf749a

+ 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图片消息处理5> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 <Websocket图片消息处理22> ( ´・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/pojo/dto/KfUploadTempMediaDTO.java

@@ -15,7 +15,7 @@ public class KfUploadTempMediaDTO {
     /**
      * 请求返回成功
      */
-    public static final long CODE_SUCCESS = 0;
+    public static final long CODE_SUCCESS = 0L;
 
     /**
      * 错误码, 成功返回 0, 40001 : access_token错误, 40004 : 不合法的媒体文件类型

+ 1 - 1
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/service/api/KfWxApiService.java

@@ -109,7 +109,7 @@ public class KfWxApiService {
         KfUploadTempMediaDTO resultDTO = JsonUtil.toObj(result, KfUploadTempMediaDTO.class);
         log.error("客服消息上传临时素材结果, resultDTO : {}", resultDTO);
         //返回
-        return resultDTO.isSuccess() ? Tuples.of(resultDTO.getErrcode(), resultDTO.getMedia_id())
+        return resultDTO.isSuccess() ? Tuples.of(KfUploadTempMediaDTO.CODE_SUCCESS, resultDTO.getMedia_id())
                 : Tuples.of(resultDTO.getErrcode(), resultDTO.getErrmsg());
     }
 }