消耗道具数量long int类型转换报错

back_recharge
yuanshuai 2021-11-24 13:54:09 +08:00
parent a4027f9f0f
commit 858be0cc77
1 changed files with 3 additions and 3 deletions

View File

@ -11,12 +11,12 @@ public class ConsumerMaterialDataManager implements BaseDataManager{
@Override
public CumulationData.Result updateData(CumulationData data, MissionType missionType, Object... parm) {
CumulationData.Result result = null;
Map<Integer, Integer> consumeMaterialMapTmp = (Map<Integer, Integer>) parm[0];
Integer count =null;
Map<Integer, Long> consumeMaterialMapTmp = (Map<Integer, Long>) parm[0];
Long count =null;
if(missionType == MissionType.USER_CONSUMER_GEM){
count = consumeMaterialMapTmp.get(Global.GEM);
if(count!=null){
data.setConsumeGem(data.getConsumeGem() + count);
data.setConsumeGem(data.getConsumeGem() + count.intValue());
result = new CumulationData.Result(missionType);
}
}else if(missionType == MissionType.USER_CONSUMER_STAMINA){