Ver a proveniência

[游戏][修复]:游戏玩次数上限判断默认值的修改

release_toaliyun_real
hupeng há 7 anos
ascendente
cometimento
a46d125a13
1 ficheiros alterados com 3 adições e 2 eliminações
  1. +3
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java

+ 3
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java Ver ficheiro

@@ -95,8 +95,9 @@ public class WxGameServiceImpl implements WxGameService {
WxGameActionLog wxGameActionLog = new WxGameActionLog();
wxGameActionLog.setUserId(userId);
wxGameActionLog.setGameId(gameId);
if (wxGameActionLogMapper.getCount(wxGameActionLog)
> wxGameMapper.selectByPrimaryKey(gameId).getPlayLimit())
int limit = wxGameMapper.selectByPrimaryKey(gameId).getPlayLimit();

if (limit != 0 && wxGameActionLogMapper.getCount(wxGameActionLog) > limit)
return new ResultData(ErrorCode.GAME_HAS_BEEN_LIMITED);
return new ResultData();
}


Carregando…
Cancelar
Guardar