wx.request调用阿里云API如何配置
var apiUrl = “https://simpleinfo.market.alicloudapi.com”;
wx.request({
url: apiUrl,
method:‘POST’,
header: {
‘content-type’: ‘application/json’,
‘Authorization’: 'APPCODE ’ + ‘**********6a7f4*******’
},
body: { },
success(res) {
console.log(res.data)
}
})