🐛 普通用户无法打开我的钱包问题修复
This commit is contained in:
parent
91796ade67
commit
b1a9d8e427
@ -68,8 +68,8 @@ public class RestAuthTokenInterceptor implements HandlerInterceptor {
|
||||
request.setAttribute(JwtConstants.CURRENT_USER_NAME, model.getUsername());
|
||||
String uri = request.getRequestURI();
|
||||
// 判断是否为后台接口或财政划转接口
|
||||
String adminApi = "/admin";
|
||||
String transactionApi = "/transaction";
|
||||
String adminApi = "/admin/";
|
||||
String transactionApi = "/transaction/";
|
||||
if (uri.contains(adminApi) || uri.contains(transactionApi)) {
|
||||
// 判断管理员权限
|
||||
boolean hasPermission = userMapper.hasAdminPermission(model.getUsername());
|
||||
|
Loading…
Reference in New Issue
Block a user