|
@@ -78,7 +78,11 @@ class Login extends BaseService
|
|
}
|
|
}
|
|
|
|
|
|
// 数据验证
|
|
// 数据验证
|
|
- $this->validate($data);
|
|
|
|
|
|
+ //$this->validate($data);
|
|
|
|
+ if (empty($data['mobile']) || empty($data['password'])){
|
|
|
|
+ throwError('Valid account or the password.', 500, []);
|
|
|
|
+ }
|
|
|
|
+
|
|
// 自动登录注册
|
|
// 自动登录注册
|
|
$userInfo = UserModel::detail(['mobile' => $data['mobile']]);
|
|
$userInfo = UserModel::detail(['mobile' => $data['mobile']]);
|
|
if ($userInfo) {
|
|
if ($userInfo) {
|