getWeiXinEncryptData(){
wx.request({
url: 'https://api.weixin.qq.com/cgi-bin/token',
data:{
grant_type:"client_credential",
appid: configs.mini_appid,
secret:"xxxxxxxxx"
},
success: (res) => {
console.log(res,'获取加密数据');
this.addRecommendedBits(res.data)
},
fail: (err) => {
console.log(err,'获取加密数据')
}
})
},
addRecommendedBits(data){
wx.request({
url: 'https://api.weixin.qq.com/wxadrama/setplayerdramarecmdswitch?access_token='+data.access_token,
method:"POST",
data:{
"entry_type":2,
"switch_status": true
},
success: (res) => {
console.log(res,'添加推荐位');
this.getDevelopersetrecmddrama(data)
},
fail: (err) => {
console.log(err,'添加推荐位失败')
}
})
},
您好,请提供一下dramaId 和 srcAppId等相关信息,以便进一步定位问题。