| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\api\controller\notify;
- use app\api\controller\BaseApiController;
- use app\common\service\call\VirtualCallService;
- /**
- * 虚拟呼叫结果回调接口
- * Class VirtualCallController
- * @package app\api\controller\notify
- */
- class VirtualCallController extends BaseApiController
- {
- public array $notNeedLogin = ['notify'];
- public function notify()
- {
- $params = $this->request->param();
- if (!empty($params['dataType']) && $params['dataType'] == 'ROBOT_TASK_STATUS_CHANGE') {
- VirtualCallService::notify($params);
- }
-
- return $this->data(['resultCode' => "200"]);
- }
- }
|