收藏
回答

wecom/jssdk 企业微信接入 调用agentConfig报错?

域名已经添加到了可信域名里面,签名

调用JS

ww.register({

          corpId:wxApp.value.corpId,

          agentId:wxApp.value.agentId,

           jsApiList:['openEnterpriseChat'],

           getConfigSignature:async(url)=>{

                   //调用API签名

                },

                getAgentConfigSignature:async(url)=>{

//调用API签名

                },

                onAgentConfigFail:err=>{

                    console.log(err);

                },

                onAgentConfigSuccess:rst=>{

                    console.log(rst);

                }

            });

运行之后,就报错了,报错如下:

{err_msg: 'not match any reliable domain. more info at https://open.work.weixin.qq.com/devtool/query?e=80001', errMsg: 'agentConfig://open.work.weixin.qq.com/devtool/query?e=80001', errCode: -1}


其他信息:

corpid: "ww9ba172a768bdc794"

agentid: "1000010"



回答关注问题邀请回答
收藏
登录 后发表内容