消耗道具数量long int类型转换报错
parent
a4027f9f0f
commit
858be0cc77
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue