|
@@ -218,7 +218,7 @@ public class SysLoginService {
|
|
|
if (ObjectUtil.isNull(user)) {
|
|
|
log.info("登录用户:{} 不存在.", username);
|
|
|
throw new UserException("user.not.exists", username);
|
|
|
- }else if ("app_user".equals(user.getUserType())&&type.equals("pc")) {
|
|
|
+ }else if (UserType.getUserType(user.getUserType())==UserType.APP_USER&&type.equals(DeviceType.PC.getDevice())) {
|
|
|
log.info("登录用户:{} 为手机端用户无权登录后台.", username);
|
|
|
throw new UserException("user.not.apptopc.exists", username);
|
|
|
}
|