Forráskód Böngészése

fix : 添加日志, 定位CP方的问题01

bilingfeng 1 éve
szülő
commit
7a41f3c9f4

+ 1 - 1
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/SDKApplication.java

@@ -23,7 +23,7 @@ public class SDKApplication {
 
     public static void main(String[] args) {
         SpringApplication.run(SDKApplication.class, args);
-        System.out.println("赞象SDK服务启动成功 <添加日志, 定位CP方的问题> ( ´・・)ノ(._.`) \n" +
+        System.out.println("赞象SDK服务启动成功 <添加日志, 定位CP方的问题01> ( ´・・)ノ(._.`) \n" +
                 " ___________ _   __\n" +
                 "/  ___|  _  \\ | / /\n" +
                 "\\ `--.| | | | |/ / \n" +

+ 0 - 9
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/controller/UserController.java

@@ -1,7 +1,6 @@
 package com.zanxiang.game.module.sdk.controller;
 
 
-import com.zanxiang.game.module.mybatis.entity.Game;
 import com.zanxiang.game.module.sdk.annotation.UnSignCheck;
 import com.zanxiang.game.module.sdk.annotation.ValidLogin;
 import com.zanxiang.game.module.sdk.enums.DataTypeEnum;
@@ -11,7 +10,6 @@ import com.zanxiang.game.module.sdk.pojo.vo.GameShareVO;
 import com.zanxiang.game.module.sdk.pojo.vo.UserLoginVO;
 import com.zanxiang.game.module.sdk.pojo.vo.UserVO;
 import com.zanxiang.game.module.sdk.service.*;
-import com.zanxiang.module.util.JsonUtil;
 import com.zanxiang.module.util.pojo.ResultVO;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
@@ -54,9 +52,6 @@ public class UserController {
     @Autowired
     private IMsgSceneCheckService msgSceneCheckService;
 
-    @Autowired
-    private IGameService gameService;
-
     @ApiOperation(value = "游戏分享信息")
     @GetMapping("/share/game")
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameShareVO.class)})
@@ -118,10 +113,6 @@ public class UserController {
     @PostMapping("/update/game/role")
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
     public ResultVO<Boolean> updateUserGameRole(@Validated @RequestBody GameUserRoleUpdateParam param, @ValidLogin UserData userData) {
-        Game game = gameService.getById(userData.getGameId());
-        if (game != null && Objects.equals(game.getSuperGameId(), 3L)) {
-            log.error("梦幻修仙游戏玩家角色信息上报, param : {}, userData : {}", JsonUtil.toString(param), JsonUtil.toString(userData));
-        }
         Boolean result = gameUserRoleService.updateUserGameRole(param, userData);
         //创建角色通知监听服务
         if (Objects.equals(param.getDataType(), DataTypeEnum.TYPE_CREATE_ROLE.getDateType())) {