|
|
|
@@ -244,18 +244,16 @@ public class WxGameServiceImpl implements WxGameService { |
|
|
|
wxGameActionLog.setGameId(gameId); |
|
|
|
|
|
|
|
int playLimit = wxGame.getPlayLimit(); |
|
|
|
if (wxGame.getTriggleAction().intValue() == 7) { |
|
|
|
//如果是定向发送,则根据定向的次数来。 |
|
|
|
WxGameUserCount gucq = new WxGameUserCount(); |
|
|
|
gucq.updateTenantInfo(wxGameActionLog); |
|
|
|
gucq.setGameId(gameId); |
|
|
|
gucq.setUserId(userId);; |
|
|
|
Integer ugs = wxGameUserCountMapper.sumUserCount(gucq); |
|
|
|
if (null == ugs ) { |
|
|
|
ugs = 0; |
|
|
|
} |
|
|
|
playLimit = ugs.intValue(); |
|
|
|
} |
|
|
|
//如果有定向发送,则根据定向的次数来。 |
|
|
|
WxGameUserCount gucq = new WxGameUserCount(); |
|
|
|
gucq.updateTenantInfo(wxGameActionLog); |
|
|
|
gucq.setGameId(gameId); |
|
|
|
gucq.setUserId(userId);; |
|
|
|
Integer ugs = wxGameUserCountMapper.sumUserCount(gucq); |
|
|
|
if (null == ugs ) { |
|
|
|
ugs = 0; |
|
|
|
} |
|
|
|
playLimit = playLimit+ugs.intValue(); |
|
|
|
|
|
|
|
int playCreditLimit = wxGame.getPlayCreditLimit(); |
|
|
|
int playCredit = 0; |
|
|
|
|