MasterWorkerCustomerController.php 627 B

12345678910111213141516171819
  1. <?php
  2. namespace app\workerapi\controller;
  3. use app\workerapi\logic\MasterWorkerCustomerLogic;
  4. use app\workerapi\validate\MasterWorkerCustomerValidate;
  5. class MasterWorkerCustomerController extends BaseApiController
  6. {
  7. public function submitCustomerProblem()
  8. {
  9. $params = (new MasterWorkerCustomerValidate())->post()->goCheck('changeIdCard');
  10. $result = MasterWorkerCustomerLogic::submitCustomerProblem($params, $this->userId);
  11. if (true === $result) {
  12. return $this->success('操作成功', [], 1, 1);
  13. }
  14. return $this->fail(MasterWorkerCustomerLogic::getError());
  15. }
  16. }