| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\workerapi\controller;
- use app\workerapi\logic\MasterWokerLogic;
- use app\workerapi\validate\MasterWokerValidate;
- class MasterWokerController extends BaseApiController
- {
- /**
- * @notes 修改密码
- * @return \think\response\Json
- * @author 段誉
- * @date 2022/9/20 19:16
- */
- public function changePassword()
- {
- $params = (new MasterWokerValidate())->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());
- }
- }
|