mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
fix(ResponseUtils.java): 补上switch里漏掉的break
This commit is contained in:
parent
e55c0fce8e
commit
f34c20ddaa
@ -27,8 +27,10 @@ public class ResponseUtils {
|
||||
break;
|
||||
case TOKEN_ACCESS_FORBIDDEN:
|
||||
response.setStatusCode(HttpStatus.FORBIDDEN);
|
||||
break;
|
||||
default:
|
||||
response.setStatusCode(HttpStatus.BAD_REQUEST);
|
||||
break;
|
||||
}
|
||||
response.getHeaders().set(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
|
||||
response.getHeaders().set("Access-Control-Allow-Origin", "*");
|
||||
|
Loading…
Reference in New Issue
Block a user