请问你要在云函数里调用什么接口(有文档链接最好)?实现是什么功能?

wx.request({
url: 'test.php', //仅为示例,并非真实的接口地址
data: {
x: '' ,
y: ''
},
header: {
'content-type': 'application/json'
},
success: function(res) {
console.log(res.data)
}
})

想实现类似这样的调用外部接口的功能,再比如:

实现GET或POST请求,说白了就是调用webservice接口