Pārlūkot izejas kodu

记录游戏打开接口

dos 1 mēnesi atpakaļ
vecāks
revīzija
1d9286e5e1

+ 4 - 3
game-business/src/main/java/com/game/business/controller/AppGameController.java

@@ -126,15 +126,16 @@ public class AppGameController extends BaseController
 
     @GetMapping("/gameTime")
     @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 = "gameName") String gameName,
                       @RequestParam(name = "date") String date)
     {
         if(null != type && type.intValue() == 1){
-            logger.info("用户:{},关闭游戏{}({}),时间", SecurityUtils.getUserId(), gameId, gameName, date);
+            logger.info("用户:{},关闭游戏{}({}),时间{},系统:{}", SecurityUtils.getUserId(), gameId, gameName, date);
         }else{
-            logger.info("用户:{},打开游戏{}({}),时间",SecurityUtils.getUserId(), gameId, gameName, date);
+            logger.info("用户:{},打开游戏{}({}),时间{},系统:{}",SecurityUtils.getUserId(), gameId, gameName, date);
         }
 
         return R.ok("记录成功","记录成功");