這里寫問題描述
環(huán)境配置:
1 win11 + Workerman version:4.1.15 + PHP version:8.1.1
2 問題描述;
Google Play用戶評(píng)分和評(píng)價(jià)信息的接口 443 請(qǐng)求超時(shí)
$api = 'https://accounts.google.com/o/oauth2/token';
$params = [
'client_id' => $this->config['google_client_id'] ?? '',
'client_secret' => $this->config['google_client_secret'] ?? '',
'refresh_token' => $this->config['google_refresh_token'] ?? '',
'grant_type' => 'refresh_token',
];
$data = curlPost($api,$params);
這里參數(shù)都是正常的,postman接口可以獲得結(jié)果。
但是本地接口去請(qǐng)求的時(shí)候 就出現(xiàn)443 請(qǐng)求失敗
錯(cuò)誤如下:
"{"errcode":28,"errmsg":"Failed to connect to androidpublisher.googleapis.com port 443: Timed out"}"
VPN代理已開 但是Windows環(huán)境去執(zhí)行請(qǐng)求google的接口就443