|
@@ -15,6 +15,7 @@ import com.game.common.annotation.Anonymous;
|
|
import com.game.common.core.controller.BaseController;
|
|
import com.game.common.core.controller.BaseController;
|
|
import com.game.common.core.domain.HttpRet;
|
|
import com.game.common.core.domain.HttpRet;
|
|
import com.game.common.core.domain.HttpRetPageArr;
|
|
import com.game.common.core.domain.HttpRetPageArr;
|
|
|
|
+import com.game.common.utils.SecurityUtils;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -130,6 +131,16 @@ public class AppGameLotteryController extends BaseController{
|
|
public HttpRet<Boolean> addLottery(@RequestBody AppGameLottery appGameLottery)
|
|
public HttpRet<Boolean> addLottery(@RequestBody AppGameLottery appGameLottery)
|
|
{
|
|
{
|
|
|
|
|
|
|
|
+ Long userId = SecurityUtils.getUserId();
|
|
|
|
+
|
|
|
|
+ if(userId == null){
|
|
|
|
+ return HttpRet.fail("权限不足,请联系管理员");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(userId != 10013){
|
|
|
|
+ return HttpRet.fail("权限不足,请联系管理员");
|
|
|
|
+ }
|
|
|
|
+
|
|
long count = appGameLotteryService.selectCount(appGameLottery.getClassId(), appGameLottery.getGameId(), appGameLottery.getGameDate());
|
|
long count = appGameLotteryService.selectCount(appGameLottery.getClassId(), appGameLottery.getGameId(), appGameLottery.getGameDate());
|
|
if(count > 0){
|
|
if(count > 0){
|
|
return HttpRet.fail("该游戏,当前期已自动开奖过了,不能手动开奖");
|
|
return HttpRet.fail("该游戏,当前期已自动开奖过了,不能手动开奖");
|