diff --git a/app/controller/Check.php b/app/controller/Check.php index 9be6bdb..46b7750 100644 --- a/app/controller/Check.php +++ b/app/controller/Check.php @@ -15,11 +15,9 @@ class Check $call = 'https://mp.weixinbridge.com/mp/wapredirect?url='.urlencode($url); $client = new Client(); - $response = $client->request('GET', $call); + $response = $client->request('GET', $call, ['allow_redirects' => false]); -//weixin110.qq.com - dump($response->getBody()->getContents()); - dump($response->getHeaders()); + dump(str_contains($response->getHeader('Location')[0], 'weixin110.qq.com')); } } \ No newline at end of file