解决类型7商店次数不刷新问题
parent
cf2f42eb40
commit
bf3e32cd88
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"version":"7",
|
||||
"tables":"ItemConfig"
|
||||
"version":"5",
|
||||
"tables":""
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"version":"6",
|
||||
"version":"5",
|
||||
"classes": [
|
||||
{"name":"CumulationData.class","fullName":"com.ljsd.jieling.logic.dao.CumulationData"}
|
||||
]
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue