1.提交缺失的东西

This commit is contained in:
2025-05-13 18:14:55 +08:00
parent 6f6d3ecc7d
commit 0fcefa3421

View File

@ -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']);
} }
/** /**