修改 project code 参数
This commit is contained in:
parent
bfa9b06475
commit
293588d6cf
@ -1,8 +1,10 @@
|
|||||||
package club.joylink.rtss.websocket.interceptor;
|
package club.joylink.rtss.websocket.interceptor;
|
||||||
|
|
||||||
import club.joylink.rtss.constants.Project;
|
|
||||||
|
|
||||||
|
import club.joylink.rtss.entity.project.Project;
|
||||||
import club.joylink.rtss.services.ISysUserService;
|
import club.joylink.rtss.services.ISysUserService;
|
||||||
import club.joylink.rtss.services.SysUserService;
|
|
||||||
import club.joylink.rtss.vo.AccountVO;
|
import club.joylink.rtss.vo.AccountVO;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.http.server.ServerHttpRequest;
|
import org.springframework.http.server.ServerHttpRequest;
|
||||||
@ -41,7 +43,7 @@ public class VSimpleInterceptor extends BaseInterceptor {
|
|||||||
private final static String USER_ACCOUNT = "user_account";
|
private final static String USER_ACCOUNT = "user_account";
|
||||||
private final static String ACCOUNT_PWD = "account_pwd";
|
private final static String ACCOUNT_PWD = "account_pwd";
|
||||||
private AccountVO checkUserInfo(Map<String,String> dataMap){
|
private AccountVO checkUserInfo(Map<String,String> dataMap){
|
||||||
AccountVO vo = this.sysUserService.findUserByAccountAndPassword(dataMap.get(USER_ACCOUNT),dataMap.get(ACCOUNT_PWD), Project.DEFAULT);
|
AccountVO vo = this.sysUserService.findUserByAccountAndPassword(dataMap.get(USER_ACCOUNT),dataMap.get(ACCOUNT_PWD), Project.DEFAULT_PROJECT_CODE);
|
||||||
return vo;
|
return vo;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user