Commit 09a5b074 authored by nie'hong's avatar nie'hong

限制h5登录的账号

parent 19a49909
......@@ -196,7 +196,7 @@ public class LoginController extends BaseController {
}
}
if (StringUtils.isNotBlank(administrator) && "2".equals(administrator)) {
if ("2".equals(user.getType()) || "4".equals(user.getType())) {
if (!"2".equals(user.getType()) || !"4".equals(user.getType())) {
resultMap.put("resultCode", "400");
resultMap.put("message", "您登录的账号既不是运维账号也不是单位用户账号,不能使用h5的功能");
return resultMap;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment