| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\api\controller\notify;
- use app\api\controller\BaseApiController;
- use think\facade\Log;
- /**
- * 网易云商外呼任务回调接口
- * Class WeCallNotifyController
- * @package app\api\controller\notify
- */
- class WeCallNotifyController extends BaseApiController
- {
- public array $notNeedLogin = ['notify'];
- public function notify(): void
- {
- $params = $this->request->param();
- Log::write(json_encode($this->request->param()));
- if($this->request->param()){
- $url = 'https://u.baidu.com/oauth/accessToken';
- $result = http_request($url,$this->request->param(),['Content-Type'=>'application/json;charset:utf-8;']);
- Log::write($result);
- }
- }
- }
|