post()->goCheck('resetPassword'); $result = UserLogic::resetPassword($params); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(UserLogic::getError()); } //修改密码 public function changePassword(): Json { $params = (new PasswordValidate())->post()->goCheck('changePassword'); $result = UserLogic::changePassword($params, $this->userId); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(UserLogic::getError()); } //绑定/变更 手机号 public function bindMobile(): Json { $params = (new UserValidate())->post()->goCheck('bindMobile'); $params['user_id'] = $this->userId; $result = UserLogic::bindMobile($params); if($result) { return $this->success('绑定成功', [], 1, 1); } return $this->fail(UserLogic::getError()); } // 实名认证 public function identifiy() { //todo } }