小程序里的這個接口:
https://我的域名/api/v2/wechat/silence_auth?code=0f34R40006UX9U1r24200kSSYa44R40X&spread_spid=&spread_code=0
這個接口一直是502,我反復排查,我在服務器里這樣執行:
wget http://127.0.0.1:20799/api/v2/wechat/silence_auth?code=0f34R40006UX9U1r24200kSSYa44R40X&spread_spid=&spread_code=0
返回是這樣的
Connecting to 127.0.0.1:20799... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
為什么?????nginx的日志是:upstream prematurely closed connection while reading response header from upstream
總之就是php沒有返回數據,并且我的服務器使用了云防火墻,我看云防火墻的日志,我的服務器根本沒有去外聯 api.weixin.qq.com。
并且是,我本地虛擬機和阿里云測試服務器的代碼完全一樣,本地虛擬機里運行是準確的,完全OK,但是在阿里云的測試服務器上,就這樣,為什么??哪里的配置可能不對??具體的版本是version=CRMEB-PRO-M v3.0.1
version_code=301