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