post()->goCheck('changePassword'); $result = MasterWokerLogic::changePassword($params, $this->userId); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(MasterWokerLogic::getError()); } /** * 更改手机号 * @return void * @author 林海涛 * @date 2024/7/10 下午2:23 */ public function changeMobile() { $params = (new MasterWokerValidate())->post()->goCheck('changeMobile'); $result = MasterWokerLogic::changeMobile($params, $this->userId); if (true === $result) { return $this->success('操作成功', [], 1, 1); } return $this->fail(MasterWokerLogic::getError()); } }