解决类型7商店次数不刷新问题

grimm 2024-07-21 00:24:10 +08:00
parent cf2f42eb40
commit bf3e32cd88
4 changed files with 14 additions and 6 deletions

View File

@ -1,4 +1,4 @@
{
"version":"7",
"tables":"ItemConfig"
"version":"5",
"tables":""
}

View File

@ -1,6 +1,5 @@
{
"version":"6",
"version":"5",
"classes": [
{"name":"CumulationData.class","fullName":"com.ljsd.jieling.logic.dao.CumulationData"}
]
}

View File

@ -136,6 +136,7 @@ public class GetPlayerInfoHandler extends BaseHandler{
FourChallengeLogic.getInstance().firstGetTimes(user);// 四灵试炼初始化
StoreLogic.getInstance().reloadStoreInfo(user,7);//重载功能商店
ExplorerMapLogic.getInstance().calOfflineReward(user);//挂机探索
storeHandler(user);//商店处理
// 特殊处理删除1601队伍
Map<Integer, List<TeamPosHeroInfo>> teamPosForHero = user.getTeamPosManager().getTeamPosForHero();
@ -458,4 +459,8 @@ public class GetPlayerInfoHandler extends BaseHandler{
return lifeGridInfos;
}
public static void storeHandler(User user){
user.getStoreManager().removeStoreError();
}
}

View File

@ -36,7 +36,11 @@ public class StoreManager extends MongoBase {
return;
}
storeInfo.getItemNumMap().remove(itemKey);
updateString(getMongoKey() + ".storeInfoMap." + key, storeInfo);
updateString("storeInfoMap." + key, storeInfo);
}
public void removeStoreError() {
removeString(getMongoKey() + ".storeManager");
}
public void refreshStoreItem(Integer key,Integer itemKey) {
@ -45,7 +49,7 @@ public class StoreManager extends MongoBase {
return;
}
storeInfo.getItemNumMap().put(itemKey, 0);
updateString(getMongoKey() + ".storeInfoMap." + key, storeInfo);
updateString("storeInfoMap." + key, storeInfo);
}
public void newStoreInfo(int id,long lastRefreshTime,long startTime,long endTime,Map<Integer,Integer> itemNumMap) {