update
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace app\controller;
|
||||
|
||||
use EasyWeChat\Factory;
|
||||
use GuzzleHttp\Client;
|
||||
use think\facade\Config;
|
||||
|
||||
class Check
|
||||
@@ -10,11 +11,17 @@ class Check
|
||||
|
||||
public function index()
|
||||
{
|
||||
$url = $GLOBALS['data']['data']['url'];
|
||||
$url = $GLOBALS['data']['data']['url'];
|
||||
$call = 'https://mp.weixinbridge.com/mp/wapredirect?url='.$url;
|
||||
|
||||
$app = Factory::officialAccount(Config::get('wechat'));
|
||||
$client = new Client();
|
||||
$response = $client->request('GET', urlencode($call));
|
||||
|
||||
dump($app->url->shorten($url));
|
||||
dump($response);
|
||||
//weixin110.qq.com
|
||||
dump($response->getReasonPhrase());
|
||||
dump($response->getBody());
|
||||
dump($response->getStatusCode());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user