二期推送需求优化完善
parent
bf0652a4ad
commit
8cfbd6ab5e
|
@ -823,7 +823,8 @@ public class BuyGoodsNewLogic {
|
|||
int bagId = judgePushCondition(user,con);
|
||||
int conditionType=con.getConditionId()[0];
|
||||
int pushId=con.getId();
|
||||
if (info.getDayPushNum(pushId)>=con.getStatistics()||info.getAllPuthNum(pushId)>=con.getCount())continue;
|
||||
if (con.getStatistics()>0&&info.getDayPushNum(pushId)>=con.getStatistics())continue;
|
||||
if (con.getCount()>0&&info.getAllPuthNum(pushId)>=con.getCount())continue;
|
||||
//条件成功
|
||||
if(bagId > 0 && info.getNextPushTime() < System.currentTimeMillis()&& info.getTypePushTimeMap(conditionType) < System.currentTimeMillis()){
|
||||
popup = bagId;
|
||||
|
|
|
@ -277,6 +277,7 @@ public class NewRechargeInfo extends MongoBase {
|
|||
|
||||
public void setTypePushTimeMap(int pushType,long nextPushTime) {
|
||||
this.typePushTimeMap.put(pushType,nextPushTime);
|
||||
updateString("typePushTimeMap."+pushType,nextPushTime);
|
||||
}
|
||||
|
||||
public int getDayPushNum(int pushId) {
|
||||
|
|
Loading…
Reference in New Issue