云函数调用成功,为什么返回值为空?
await request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(JSON.stringify(body));
var data = JSON.stringify(body)
return {
data
}
});
await request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(JSON.stringify(body));
var data = JSON.stringify(body)
return {
data
}
});