فهرست منبع

fix : 壳包控制接口修改请求方式

bilingfeng 1 سال پیش
والد
کامیت
0fd2801f67

+ 2 - 5
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/controller/InitController.java

@@ -11,10 +11,7 @@ import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiResponse;
 import io.swagger.annotations.ApiResponses;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 /**
  * @author : lingfeng
@@ -42,7 +39,7 @@ public class InitController {
 
     @UnSignCheck
     @ApiOperation(value = "微信小游戏壳包控制开关")
-    @PostMapping("/shell/switch")
+    @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));