This commit is contained in:
liu 2024-06-27 20:05:07 +08:00
commit aa689ce02f
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class LoginController extends BaseApiController
*/ */
public function updateUser() public function updateUser()
{ {
$params = (new WechatLoginValidate())->post()->goCheck("updateUser"); $params = $this->request->post();
$result = LoginLogic::updateUser($params, $this->userId); $result = LoginLogic::updateUser($params, $this->userId);
if ($result === false) { if ($result === false) {
return $this->fail(LoginLogic::getError()); return $this->fail(LoginLogic::getError());

View File

@ -91,7 +91,7 @@ class WechatLoginValidate extends BaseValidate
*/ */
public function sceneUpdateUser() public function sceneUpdateUser()
{ {
return $this->only(['mobile']); return $this->only([]);
} }