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