|
@@ -10,6 +10,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
|
import io.swagger.annotations.ApiResponses;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -20,6 +21,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
*/
|
|
|
@Api(tags = "sdk初始化接口")
|
|
|
@RestController
|
|
|
+@Slf4j
|
|
|
@RequestMapping(value = "/api/init")
|
|
|
public class InitController {
|
|
|
|
|
@@ -42,6 +44,8 @@ public class InitController {
|
|
|
@GetMapping("/shell/switch")
|
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
public ResultVO<Integer> getShellSwitch(@RequestParam String appId, @RequestParam String version) {
|
|
|
- return ResultVO.ok(gameAppletShellService.getShellSwitch(appId, version));
|
|
|
+ Integer shellSwitch = gameAppletShellService.getShellSwitch(appId, version);
|
|
|
+ log.error("客保控制开关返回值, shellSwitch : {}", shellSwitch);
|
|
|
+ return ResultVO.ok(shellSwitch);
|
|
|
}
|
|
|
}
|