diff --git a/mallinkCApi/src/main/java/com/iformall/controller/WxGameController.java b/mallinkCApi/src/main/java/com/iformall/controller/WxGameController.java index 47c1d745a..bb231ed19 100644 --- a/mallinkCApi/src/main/java/com/iformall/controller/WxGameController.java +++ b/mallinkCApi/src/main/java/com/iformall/controller/WxGameController.java @@ -56,13 +56,13 @@ public class WxGameController extends BaseController { @ApiImplicitParams({ @ApiImplicitParam(name = "gameId", value = "游戏ID", dataType = "String", paramType = "query", required = true), @ApiImplicitParam(name = "orderId", value = "券订单ID", dataType = "String", paramType = "query", required = true)}) - public ResultData addActionLog(String gameId, String orderId) { + public ResultData addActionLog(@RequestBody Map paramMap) { Long gameIdL = null; Long orderIdL = null; try { - gameIdL = Long.valueOf(gameId); - orderIdL = Long.valueOf(orderId); + gameIdL = Long.valueOf(paramMap.get("gameId")); + orderIdL = Long.valueOf(paramMap.get("orderId")); } catch (Exception e){ return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); } diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java index e543584c0..b6d9be5fd 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java @@ -132,11 +132,11 @@ public class WxGameServiceImpl implements WxGameService { if ( playLimit != 0 && playCount >= playLimit) - return new ResultData(ErrorCode.GAME_PLAY_HAS_BEEN_LIMITED, playLimit - playCount); + return new ResultData(ErrorCode.GAME_PLAY_HAS_BEEN_LIMITED); if (AwardLimit != 0 && AwardCount >= AwardLimit) - return new ResultData(ErrorCode.GAME_AWARD_HAS_BEEN_LIMITED,AwardLimit - AwardCount); + return new ResultData(ErrorCode.GAME_AWARD_HAS_BEEN_LIMITED); return new ResultData(playLimit - playCount); }