| @@ -101,6 +101,7 @@ public class WxGameController extends BaseController { | |||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name = "gameId", value = "游戏ID", dataType = "String", paramType = "query", required = true)}) | @ApiImplicitParam(name = "gameId", value = "游戏ID", dataType = "String", paramType = "query", required = true)}) | ||||
| public ResultData freeGameGo(@RequestBody Map<String,String> paramMap) { | public ResultData freeGameGo(@RequestBody Map<String,String> paramMap) { | ||||
| logger.info("freeGameGo-------"+paramMap.get("gameId")); | |||||
| try { | try { | ||||
| Long gameIdL = Long.valueOf(paramMap.get("gameId")); | Long gameIdL = Long.valueOf(paramMap.get("gameId")); | ||||
| if(gameIdL == null){ | if(gameIdL == null){ | ||||
| @@ -124,7 +125,6 @@ public class WxGameController extends BaseController { | |||||
| return new ResultData(ErrorCode.GAME_NOT_HAVE_COUNT); | return new ResultData(ErrorCode.GAME_NOT_HAVE_COUNT); | ||||
| } | } | ||||
| ResultData resultData = wxGameService.luckDraw(gameIdL, getMemberId(),0); | ResultData resultData = wxGameService.luckDraw(gameIdL, getMemberId(),0); | ||||
| removeCacheCUser(); | |||||
| return resultData; | return resultData; | ||||
| } catch (MallinkException e){ | } catch (MallinkException e){ | ||||
| return new ResultData(ErrorCode.getByCode(e.getErrorCode())); | return new ResultData(ErrorCode.getByCode(e.getErrorCode())); | ||||
| @@ -140,6 +140,7 @@ public class WxGameController extends BaseController { | |||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @ApiImplicitParam(name = "gameId", value = "游戏ID", dataType = "String", paramType = "query", required = true)}) | @ApiImplicitParam(name = "gameId", value = "游戏ID", dataType = "String", paramType = "query", required = true)}) | ||||
| public ResultData freeCridetGameGo(@RequestBody Map<String,String> paramMap) { | public ResultData freeCridetGameGo(@RequestBody Map<String,String> paramMap) { | ||||
| logger.info("freeCridetGameGo-------"+paramMap.get("gameId")); | |||||
| try { | try { | ||||
| Long gameIdL = Long.valueOf(paramMap.get("gameId")); | Long gameIdL = Long.valueOf(paramMap.get("gameId")); | ||||
| if(gameIdL == null){ | if(gameIdL == null){ | ||||
| @@ -169,7 +170,6 @@ public class WxGameController extends BaseController { | |||||
| return new ResultData(ErrorCode.GAME_HAVE_COUNT); | return new ResultData(ErrorCode.GAME_HAVE_COUNT); | ||||
| } | } | ||||
| ResultData resultData = wxGameService.cridetLuckDraw(gameIdL, getMemberId()); | ResultData resultData = wxGameService.cridetLuckDraw(gameIdL, getMemberId()); | ||||
| removeCacheCUser(); | |||||
| return resultData; | return resultData; | ||||
| } catch (MallinkException e){ | } catch (MallinkException e){ | ||||
| return new ResultData(ErrorCode.getByCode(e.getErrorCode())); | return new ResultData(ErrorCode.getByCode(e.getErrorCode())); | ||||