wx.getSetting 参数withSubscriptions为true时无效
发布于 7 年前 作者 xiangyong 13762 次浏览 来自 问答
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 回复

怎么无效了

回到顶部