Files
heping-api/app/controller/Check.php
2022-09-09 15:59:46 +08:00

27 lines
550 B
PHP

<?php
namespace app\controller;
use EasyWeChat\Factory;
use GuzzleHttp\Client;
use think\facade\Config;
class Check
{
public function index()
{
$url = $GLOBALS['data']['data']['url'];
$call = 'https://mp.weixinbridge.com/mp/wapredirect?url='.$url;
$client = new Client();
$response = $client->request('GET', urlencode($call));
dump($response);
//weixin110.qq.com
dump($response->getReasonPhrase());
dump($response->getBody());
dump($response->getStatusCode());
}
}