浏览代码

去掉空格

kk 4 周之前
父节点
当前提交
a6c2d6ca1b

+ 4 - 0
game-business/src/main/java/com/game/business/controller/AppGameLotteryController.java

@@ -178,6 +178,10 @@ public class AppGameLotteryController extends BaseController{
             return HttpRet.fail("权限不足,请联系管理员");
         }
 
+        if(StringUtils.isNotBlank(appGameLottery.getGameDate())){
+            appGameLottery.setGameDate(appGameLottery.getGameDate().trim());
+        }
+
         AppGameLottery dbAppGameLottery = appGameLotteryService.selectLottery(appGameLottery.getClassId(), appGameLottery.getGameId(), appGameLottery.getGameDate());
         if(dbAppGameLottery != null && dbAppGameLottery.getIsLottery() == 1){
             return HttpRet.fail("该游戏,当前期已自动开奖过了,不能手动开奖");