1、调用如下接口,之前一直可以使用,现在不行了(其中经纬度是正确的):
'https://free-api.heweather.com/s6/weather/now?key='+key+'&location=' + longitude + ',' + latitude;
报错:
GET https://free-api.heweather.com/s6/weather/now?key=QQQQQQQQQQ&location=XXX,YYY net::ERR_CONNECTION_REFUSED(env: Windows,mp,1.06.2303220; lib: 2.30.4)
2、改为如下接口,直接报错:
'https://devapi.qweather.com/v7/weather/3d?key='+key+'&location='+longitude+','+latitude;
TypeError: Cannot read property '0' of undefined
at Object.success (clock.js:842)
at Function.t.length.h.<computed> (VM128 WAService.js:1)
at :29828/appservice/<api request success callback function>
at VM128 WAService.js:1
at Vl (VM128 WAService.js:1)
at r.<anonymous> (VM128 WAService.js:1)
at :29828/appservice/<NetworkRequest14success callback function>
at VM128 WAService.js:1
at Gp (VM128 WAService.js:1)
at VM128 WAService.js:1(env: Windows,mp,1.06.2303220; lib: 2.30.4)
提供一下api接口