魂宝灵宝强转问题

back_recharge
duhui 2021-11-17 08:31:25 +08:00
parent c9f0841176
commit fbb977b360
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
package com.ljsd.jieling.logic.hero; package com.ljsd.jieling.logic.hero;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.Gson;
import com.ljsd.GameApplication; import com.ljsd.GameApplication;
import com.ljsd.fight.FamilyHeroInfo; import com.ljsd.fight.FamilyHeroInfo;
import com.ljsd.jieling.chat.logic.ChatLogic; import com.ljsd.jieling.chat.logic.ChatLogic;
@ -2685,7 +2687,8 @@ public class HeroLogic {
if (propertyItem == null) { if (propertyItem == null) {
continue; continue;
} }
Jewel j = (Jewel) propertyItem; Gson gson = RedisUtil.getInstence().getGson();
Jewel j = gson.fromJson(gson.toJson(propertyItem),Jewel.class);
SJewelConfig config = STableManager.getConfig(SJewelConfig.class).get(j.getEquipId()); SJewelConfig config = STableManager.getConfig(SJewelConfig.class).get(j.getEquipId());
// 进阶 // 进阶
Map<Integer, Map<Integer, SJewelRankupConfig>> rankPoolMap = SJewelRankupConfig.rankupMap.get(config.getRankupPool()); Map<Integer, Map<Integer, SJewelRankupConfig>> rankPoolMap = SJewelRankupConfig.rankupMap.get(config.getRankupPool());