请求豆瓣api报403错误
来源:20-11 RESTful API简介及调用豆瓣API
轻风起自远东QAQ
2018-02-22
onLoad: function (options) {
wx.request({
url: 'https://api.douban.com/v2/movie/top250',
data: {},
method: 'GET',
header: {
'Content-type': 'json'
},
success: function (res) {
console.log(res);
}
});
},错误内容如下:

错误出自7-12,换成http: //http://t.yushu.im后也出错 ,错误如下:

写回答
1回答
-
你这不还是请求的豆瓣么,你看url,起码要把 https://api.douban.com换成yushu吧。我再7-1里说的是把基地址替换掉。
032018-02-22
相似问题