wx.getSetting 参数withSubscriptions为true时无效

发布于 8 年前作者 xiangyong13872 次浏览最后编辑 8 年前来自 ask
wx.getSetting({
			  withSubscriptions: true,
			  success (res) {
			    console.log(res)
			    // res.authSetting = {
			    //   "scope.userInfo": true,
			    //   "scope.subscribeMessage": true
			    // }
			    console.log(res.subscriptionsSetting)
			    // res.subscriptionsSetting = {
			    //   SYS_MSG_TYPE_INTERACTIVE: 'accept',
			    //   SYS_MSG_TYPE_RANK: 'accept',
			    //   zun-LzcQyW-edafCVvzPkK4de2Rllr1fFpw2A_x0oXE: 'reject',
			    //   ke_OZC_66gZxALLcsuI7ilCJSP2OJ2vWo2ooUPpkWrw: 'ban',
			    // }
			  }
			})

wx.requestSubscribeMessage({
				tmplIds: ['Y-aABRdqzPotRYrBtlIOEa03NisFYoigBE66r99aedA'],
				success: res => {
					console.log(res)
				},
				failerr=>{
					console.log(err)
				},
				complete: res=>{
					console.log('complete', res)
					
				}
			});

1 回复
tsu
tsu1 楼6 年前

怎么无效了