任务兼容
parent
43b3eaca7f
commit
cb2581e5fc
|
@ -55,11 +55,11 @@ public class CowFlySkyMissionType extends AbstractMissionType {
|
|||
public void calCumulationDataResult(User user, CumulationData.Result result, List<MissionStateChangeInfo> missionStateChangeInfos, CumulationData cumulationData) throws Exception {
|
||||
// 进行中得任务
|
||||
Set<Integer> doingMissionIds = getDoingMissionIds();
|
||||
Collection<SArroGantFly> values = SArroGantFly.getTaskTypeMap().get(result.subType.getMissionTypeValue()).values();
|
||||
if (values == null || values.isEmpty()){
|
||||
Map<Integer, SArroGantFly> flyMap = SArroGantFly.getTaskTypeMap().get(result.subType.getMissionTypeValue());
|
||||
if (flyMap == null || flyMap.isEmpty()){
|
||||
return;
|
||||
}
|
||||
for (SArroGantFly fly : values) {
|
||||
for (SArroGantFly fly : flyMap.values()) {
|
||||
// 任务子id
|
||||
int id = fly.getId();
|
||||
// 不在执行中
|
||||
|
|
Loading…
Reference in New Issue