一、在cloudfunctions里右键新建search文件夹 =》Node.js云函数,右键在终端打开,安装got
npm install --save got@9
二、在index.js里编写接口代码
const got = require('got')
// 云函数入口函数
exports.main = async (event, context) => {
const response = await got(`http://1.101.100.211/xxx/xxx?query=$