VirtualCallController.php 653 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\api\controller\notify;
  3. use app\api\controller\BaseApiController;
  4. use app\common\service\call\VirtualCallService;
  5. /**
  6. * 虚拟呼叫结果回调接口
  7. * Class VirtualCallController
  8. * @package app\api\controller\notify
  9. */
  10. class VirtualCallController extends BaseApiController
  11. {
  12. public array $notNeedLogin = ['notify'];
  13. public function notify()
  14. {
  15. $params = $this->request->param();
  16. if (!empty($params['dataType']) && $params['dataType'] == 'ROBOT_TASK_STATUS_CHANGE') {
  17. VirtualCallService::notify($params);
  18. }
  19. return $this->data(['resultCode' => "200"]);
  20. }
  21. }