提交修改
This commit is contained in:
commit
803d0d9003
@ -70,7 +70,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);
|
||||
|
||||
@ -57,7 +57,6 @@ public class OAuth2Filter extends AuthenticatingFilter {
|
||||
protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws Exception {
|
||||
//获取请求token,如果token不存在,直接返回401
|
||||
String token = getRequestToken((HttpServletRequest) request);
|
||||
String profile = SpringContextUtils.getActiveProfile();
|
||||
if(StringUtils.isBlank(token)){
|
||||
HttpServletResponse httpResponse = (HttpServletResponse) response;
|
||||
httpResponse.setHeader("Access-Control-Allow-Credentials", "true");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user