|
@@ -113,7 +113,8 @@ public class LoginService implements ILoginService {
|
|
|
return RestResponse.fail(ApiConstants.RESULT_ERROR, "手机号尚未注册");
|
|
|
}
|
|
|
//判断用户是否为物管端用户
|
|
|
- if (ApiConstants.UserConstants.PUBLIC_TYPE_USER == userAccount.getType()) {
|
|
|
+ int userType = userAccount.getType() != null ? userAccount.getType() : ApiConstants.UserConstants.TYPE_USER;
|
|
|
+ if (ApiConstants.UserConstants.PUBLIC_TYPE_USER == userType) {
|
|
|
//物管端用户,查看登录端
|
|
|
if (ApiConstants.ACCESS_TYPE_APPLETS == userRequest.getMobileType()
|
|
|
|| ApiConstants.ACCESS_TYPE_PC == userRequest.getMobileType()) {
|