|
@@ -126,15 +126,16 @@ public class AppGameController extends BaseController
|
|
|
|
|
|
@GetMapping("/gameTime")
|
|
@GetMapping("/gameTime")
|
|
@ApiOperation(value = "记录游戏打开", notes = "记录游戏打开")
|
|
@ApiOperation(value = "记录游戏打开", notes = "记录游戏打开")
|
|
- public R gameTime(@RequestParam(name = "type") Integer type,
|
|
|
|
|
|
+ public R gameTime(@RequestParam(name = "type") Integer type, // 类型 0:打开 1:关闭
|
|
|
|
+ @RequestParam(name = "osType") String osType, //系统类型 ios或安卓
|
|
@RequestParam(name = "gameId") String gameId,
|
|
@RequestParam(name = "gameId") String gameId,
|
|
@RequestParam(name = "gameName") String gameName,
|
|
@RequestParam(name = "gameName") String gameName,
|
|
@RequestParam(name = "date") String date)
|
|
@RequestParam(name = "date") String date)
|
|
{
|
|
{
|
|
if(null != type && type.intValue() == 1){
|
|
if(null != type && type.intValue() == 1){
|
|
- logger.info("用户:{},关闭游戏{}({}),时间", SecurityUtils.getUserId(), gameId, gameName, date);
|
|
|
|
|
|
+ logger.info("用户:{},关闭游戏{}({}),时间{},系统:{}", SecurityUtils.getUserId(), gameId, gameName, date);
|
|
}else{
|
|
}else{
|
|
- logger.info("用户:{},打开游戏{}({}),时间",SecurityUtils.getUserId(), gameId, gameName, date);
|
|
|
|
|
|
+ logger.info("用户:{},打开游戏{}({}),时间{},系统:{}",SecurityUtils.getUserId(), gameId, gameName, date);
|
|
}
|
|
}
|
|
|
|
|
|
return R.ok("记录成功","记录成功");
|
|
return R.ok("记录成功","记录成功");
|