Files
heping-api/app/controller/Check.php
2022-09-09 16:00:21 +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='.urlencode($url);
$client = new Client();
$response = $client->request('GET', $call);
dump($response);
//weixin110.qq.com
dump($response->getReasonPhrase());
dump($response->getBody());
dump($response->getStatusCode());
}
}