安卓跳转公众号,提示"本次请求无效,请确认是否具有权限",请问怎么得到权限?
调用代码:
val iWXAPI = WXAPIFactory.createWXAPI(ContextManager.applicationContext, PUBLICK_APP_ID, true)
iWXAPI.registerApp(PUBLICK_APP_ID)
val req = JumpToBizProfile.Req()
req.toUserName = publickId //公众号原始id
req.extMsg = extMsg
req.profileType = JumpToBizProfile.JUMP_TO_NORMAL_BIZ_PROFILE
val ret = iWXAPI.sendReq(req)