Browse Source

fix

release_toaliyun_real
winter 1 year ago
parent
commit
b807e7ee75
1 changed files with 10 additions and 12 deletions
  1. +10
    -12
      mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java

+ 10
- 12
mallinkService/src/main/java/com/iformall/service/impl/WxGameServiceImpl.java View File

@@ -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;


Loading…
Cancel
Save