任务兼容

back_recharge
duhui 2022-09-07 13:48:21 +08:00
parent 43b3eaca7f
commit cb2581e5fc
1 changed files with 3 additions and 3 deletions

View File

@ -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();
// 不在执行中