1.提交缺失的东西

This commit is contained in:
2025-08-08 15:36:43 +08:00
parent 90b02e4a08
commit c64939c7af

View File

@ -66,12 +66,12 @@ class AccountController extends BaseApiController
public function login() public function login()
{ {
$post = $this->request->post(); $post = $this->request->post();
$check = $this->validate($post, 'app\api\validate\Login.password'); // $check = $this->validate($post, 'app\api\validate\Login.password');
if (true !== $check) { // if (true !== $check) {
$this->_error($check); // $this->_error($check);
} // }
$data = LoginLogic::login($post); $data = LoginLogic::login($post);
$this->_success('登录成功', $data); return $this->success('登录成功', $data);
} }
/** /**