1.提交缺失的东西
This commit is contained in:
@ -267,13 +267,13 @@ class AccountController extends BaseApiController
|
|||||||
{
|
{
|
||||||
$post = $this->request->post();
|
$post = $this->request->post();
|
||||||
if (!isset($post['avatar']) || empty($post['avatar'])) {
|
if (!isset($post['avatar']) || empty($post['avatar'])) {
|
||||||
$this->_error('参数缺失');
|
$this->fail('参数缺失');
|
||||||
}
|
}
|
||||||
if (!isset($post['nickname']) || empty($post['nickname'])) {
|
if (!isset($post['nickname']) || empty($post['nickname'])) {
|
||||||
$this->_error('参数缺失');
|
$this->fail('参数缺失');
|
||||||
}
|
}
|
||||||
$data = LoginLogic::updateUser($post,$this->user_id);
|
$data = LoginLogic::updateUser($post,$this->userId);
|
||||||
$this->_success($data['msg'], $data['data'], $data['code'], $data['show']);
|
$this->success($data['msg'], $data['data'], $data['code'], $data['show']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user