exports.main = async (event, context) => {
return rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)
.then(function(res) {
console.log(res);
return res;
})
.catch(function(err) {
console.log(err);
})
}
应该是新代码没生效,重新上传云函数试试
重新上传云函数