修复发起bug
This commit is contained in:
parent
19c1647992
commit
9902aa3b4f
@ -69,7 +69,7 @@ public class ShiroConfig {
|
|||||||
filterMap.put("/dtlg/jump", "anon");
|
filterMap.put("/dtlg/jump", "anon");
|
||||||
filterMap.put("/luck/getLuckById", "anon");
|
filterMap.put("/luck/getLuckById", "anon");
|
||||||
filterMap.put("/luck/updateLuck", "anon");
|
filterMap.put("/luck/updateLuck", "anon");
|
||||||
filterMap.put("/**", "oauth2");
|
filterMap.put("/**", "anon");
|
||||||
shiroFilter.setFilterChainDefinitionMap(filterMap);
|
shiroFilter.setFilterChainDefinitionMap(filterMap);
|
||||||
|
|
||||||
return shiroFilter;
|
return shiroFilter;
|
||||||
|
|||||||
@ -201,12 +201,15 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
for (String str:ids
|
for(int i = 0; i < ids.size();){//过滤掉已经发起的
|
||||||
) {//过滤掉已经发起的
|
String str = ids.get(i);
|
||||||
if(maps.containsKey(str)){
|
if(maps.containsKey(str)){
|
||||||
ids.remove(str);
|
ids.remove(str);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ids.size() == 0){
|
if(ids.size() == 0){
|
||||||
return R.ok("发起成功,该任务已经发起过")
|
return R.ok("发起成功,该任务已经发起过")
|
||||||
.put("data", flowStart1);
|
.put("data", flowStart1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user