winter 1 год назад
Родитель
Сommit
b807e7ee75
1 измененных файлов: 10 добавлений и 12 удалений
  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 Просмотреть файл

@@ -244,18 +244,16 @@ public class WxGameServiceImpl implements WxGameService {
wxGameActionLog.setGameId(gameId); wxGameActionLog.setGameId(gameId);


int playLimit = wxGame.getPlayLimit(); 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 playCreditLimit = wxGame.getPlayCreditLimit();
int playCredit = 0; int playCredit = 0;


Загрузка…
Отмена
Сохранить