|
@@ -1,6 +1,7 @@
|
|
|
package com.zanxiang.game.module.sdk.controller;
|
|
|
|
|
|
|
|
|
+import com.zanxiang.game.module.sdk.annotation.UnSignCheck;
|
|
|
import com.zanxiang.game.module.sdk.annotation.ValidLogin;
|
|
|
import com.zanxiang.game.module.sdk.enums.DataTypeEnum;
|
|
|
import com.zanxiang.game.module.sdk.pojo.param.*;
|
|
@@ -8,10 +9,7 @@ import com.zanxiang.game.module.sdk.pojo.vo.CustomerVO;
|
|
|
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.IGameUserRoleService;
|
|
|
-import com.zanxiang.game.module.sdk.service.IUserCardService;
|
|
|
-import com.zanxiang.game.module.sdk.service.IUserService;
|
|
|
-import com.zanxiang.game.module.sdk.service.IUserShareService;
|
|
|
+import com.zanxiang.game.module.sdk.service.*;
|
|
|
import com.zanxiang.module.util.pojo.ResultVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -21,6 +19,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
/**
|
|
@@ -45,6 +44,9 @@ public class UserController {
|
|
|
@Autowired
|
|
|
private IUserShareService userShareService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IGameShellLogService gameShellLogService;
|
|
|
+
|
|
|
@ApiOperation(value = "游戏分享信息")
|
|
|
@GetMapping("/share/game")
|
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameShareVO.class)})
|
|
@@ -113,4 +115,12 @@ public class UserController {
|
|
|
return ResultVO.ok(gameUserRoleService.gameRoleActiveCall(userData, param));
|
|
|
}
|
|
|
|
|
|
+ @UnSignCheck
|
|
|
+ @ApiOperation(value = "用户进入壳包上报")
|
|
|
+ @PostMapping("/game/shell/call")
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
+ public ResultVO<Boolean> gameShellLogAdd(@Validated @RequestBody GameShellLogParam param, HttpServletRequest request) {
|
|
|
+ return ResultVO.ok(gameShellLogService.gameShellLogAdd(param, request));
|
|
|
+ }
|
|
|
+
|
|
|
}
|