wx.request调用阿里云API如何配置
发布于 5 年前 作者 yong04 4299 次浏览 来自 问答

 

         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 回复

菜单里设置

回到顶部