瀏覽代碼

feat : 服务器迁移, 修正DUBBO通信问题

bilingfeng 10 月之前
父節點
當前提交
02b24dfac3

+ 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服务启动成功 < (虚拟游戏更改为可接待03・・)ノ(._.`) \n" +
+        System.out.println("赞象Manage服务启动成功 < (服务器迁移, 修正DUBBO通信问题・・)ノ(._.`) \n" +
                 "___  ___  ___   _   _   ___  _____  _____ \n" +
                 "|  \\/  | / _ \\ | \\ | | / _ \\|  __ \\|  ___|\n" +
                 "| .  . |/ /_\\ \\|  \\| |/ /_\\ \\ |  \\/| |__  \n" +

+ 4 - 18
game-module/game-module-manage/src/main/java/com/zanxiang/game/module/manage/controller/api/CpServerApi.java

@@ -1,8 +1,5 @@
 package com.zanxiang.game.module.manage.controller.api;
 
-import com.zanxiang.game.back.base.ServerInfo;
-import com.zanxiang.game.back.base.pojo.dto.TtAppUserBackQueryRpcDTO;
-import com.zanxiang.game.back.base.rpc.ITtAppBackRpc;
 import com.zanxiang.game.module.manage.pojo.params.ChatSubmitParam;
 import com.zanxiang.game.module.manage.pojo.params.OpenGameServerParam;
 import com.zanxiang.game.module.manage.service.api.CpServerApiService;
@@ -12,10 +9,12 @@ import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiResponse;
 import io.swagger.annotations.ApiResponses;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.dubbo.config.annotation.DubboReference;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 
 /**
  * @author : lingfeng
@@ -31,19 +30,6 @@ public class CpServerApi {
     @Autowired
     private CpServerApiService cpServerApiService;
 
-    @DubboReference(providedBy = ServerInfo.SERVER_DUBBO_NAME)
-    private ITtAppBackRpc ttAppBackRpc;
-
-
-    @ApiOperation(value = "test")
-    @GetMapping(value = "/test")
-    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
-    public ResultVO<Boolean> test() {
-        ttAppBackRpc.userBackQuery(new TtAppUserBackQueryRpcDTO());
-        return ResultVO.ok();
-    }
-
-
     @ApiOperation(value = "cp提交游戏聊天记录")
     @PostMapping(value = "/chat/msg/submit")
     @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})