|
|
|
@@ -96,7 +96,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) { |
|
|
|
try { |
|
|
|
// try { |
|
|
|
Long gameIdL = Long.valueOf(paramMap.get("gameId")); |
|
|
|
if(gameIdL == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
@@ -121,9 +121,9 @@ public class WxGameController extends BaseController { |
|
|
|
ResultData resultData = wxGameService.luckDraw(gameIdL, getMemberId(),0); |
|
|
|
removeCacheCUser(); |
|
|
|
return resultData; |
|
|
|
} catch (Exception e){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
} |
|
|
|
// } catch (Exception e){ |
|
|
|
// return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@@ -132,7 +132,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) { |
|
|
|
try { |
|
|
|
// try { |
|
|
|
Long gameIdL = Long.valueOf(paramMap.get("gameId")); |
|
|
|
if(gameIdL == null){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
@@ -163,9 +163,9 @@ public class WxGameController extends BaseController { |
|
|
|
ResultData resultData = wxGameService.cridetLuckDraw(gameIdL, getMemberId()); |
|
|
|
removeCacheCUser(); |
|
|
|
return resultData; |
|
|
|
} catch (Exception e){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
} |
|
|
|
// } catch (Exception e){ |
|
|
|
// return new ResultData(ErrorCode.SYS_PARAMETER_ERROR); |
|
|
|
// } |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|