1.提交缺失的东西
This commit is contained in:
@ -66,12 +66,12 @@ class AccountController extends BaseApiController
|
||||
public function login()
|
||||
{
|
||||
$post = $this->request->post();
|
||||
$check = $this->validate($post, 'app\api\validate\Login.password');
|
||||
if (true !== $check) {
|
||||
$this->_error($check);
|
||||
}
|
||||
// $check = $this->validate($post, 'app\api\validate\Login.password');
|
||||
// if (true !== $check) {
|
||||
// $this->_error($check);
|
||||
// }
|
||||
$data = LoginLogic::login($post);
|
||||
$this->_success('登录成功', $data);
|
||||
return $this->success('登录成功', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user