z***@163.com
z***@163.com
  • 发布:2024-09-22 10:45
  • 更新:2024-09-22 10:45
  • 阅读:34

关于 app跳转微信客服报错deeplink custmerservice no permission排查解决

分类:uni-app

1.准备工作,微信开放平企业认证微信开放平台app认证,企业微信企业认证共计600元

  1. 认证通过后在企业微信中>微信客服 绑定 微信开放平台认证的app
  2. 在manifest.json>app模块配置>share分享填入 开放平台认证的appid
  3. 重新打自定义包(标准基座会报错deeplink custmerservice no permission)
  4. 填写企业微信的id plus中的方法备注的是填写g_开头的不要管他
    附上代码
    openWeixinService(e){  
                let sweixin = null    
                            plus.share.getServices(res=>{    
                                sweixin = res.find(i => i.id === 'weixin')  
                                if(sweixin){    
                                    sweixin.openCustomerServiceChat({    
                                        corpid: '企业微信id',  //获取链接https://work.weixin.qq.com/wework_admin/frame#/profile  
                                        url: '客服链接',  //获取链接https://work.weixin.qq.com/wework_admin/frame#/app/servicer  
                                    },suc=>{    
                                        console.log("success",JSON.stringify(res))    
                                    },err=>{    
                                        console.log("error",JSON.stringify(err))    
                                    })    
                                }else{    
                                    plus.nativeUI.alert('当前环境不支持微信操作!')    
                                }    
                            },function(){    
                                uni.showToast({title: "获取服务失败,不支持该操作。"+JSON.stringify(e), icon: 'error'})    
                            })    
            } 
0 关注 分享

要回复文章请先登录注册