feat: 修改登录控制器以获取更新用户信息

This commit is contained in:
mkm 2024-06-27 20:03:43 +08:00
parent 5b8d129abd
commit cba0505f63

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());