资源均衡型wx.request({
url: 'https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=' +res.data[0].access_token,
method: 'post',
data: {
"type": 'news',
"offset": 0,
"count":3
},
header: {
'content-type': 'application/json'
},
使用wx.request获取关联微信公众号文章,但是提示api.weixin.qq.com不安全。可是在文档开发说明中就是使用这个网址来获取文章,这个小程序设置和开发文档是不是相矛盾。往高人解答,我是没有第三方服务器的。
这个接口不能直接在小程序端调用
got :https://github.com/sindresorhus/got