27 lines
550 B
PHP
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());
|
|
}
|
|
|
|
} |