wx.request调用阿里云API如何配置

发布于 7 年前作者 yong044443 次浏览最后编辑 7 年前来自 ask

 

         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)

      }

    })

1 回复
bdeng
bdeng1 楼5 年前

菜单里设置