pos相关
This commit is contained in:
@@ -42,11 +42,11 @@ public class LoginController {
|
||||
public Result<Object> jwtTest(HttpServletRequest request) {
|
||||
String token = request.getHeader("token");
|
||||
String userId = request.getHeader("userId");
|
||||
|
||||
if (!Objects.equals("244", userId)) {
|
||||
// 此处不能返回401, 不然会形成死循环
|
||||
throw new MsgException("未授权");
|
||||
}
|
||||
//
|
||||
// if (!Objects.equals("244", userId)) {
|
||||
// // 此处不能返回401, 不然会形成死循环
|
||||
// throw new MsgException("未授权");
|
||||
// }
|
||||
|
||||
Object tokenUserId = JwtUtils.get("uid", token);
|
||||
if (!Objects.equals(userId, tokenUserId.toString())) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
spring:
|
||||
profiles:
|
||||
include: common, ryx, ys
|
||||
active: prod
|
||||
active: dev
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 100MB
|
||||
|
||||
Reference in New Issue
Block a user