企业微信jssdk 调用openEnterpriseChat创建会话接口,安卓成功,ios没反应?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:05 3182 0 全屏看文

AI助手支持GPT4.0

企业微信jssdk 调用openEnterpriseChat创建会话接口,安卓成功,ios没反应?

这个是页面内容,安卓打开页面后,直接创建会话,ios没反应。

我将debug 设置true,ios显示config:ok    ,checkJsApi打开后,res.errMsg:openEnterpriseChat:ok,

但是没有自动创建会话,我单独click openEnterpriseChat 也没执行。引用的是jweixin-1.2.0.js文件。麻烦帮忙看看咋回事。

wx.config({

        debug:true,

        appId: 'xxxxxxxxxxxx', // 必填,企业微信的corpid,必须与当前登录的企业一致

        agentid: 'xxxxxxxxxxxxxxxxx', // 必填,企业微信的应用id (e.g. 1000247)

        timestamp:timestamp,

        nonceStr:nonceStr,

        signature:signature,

        jsApiList:['openEnterpriseChat']

    });

wx.ready(function(){

        /*wx.checkJsApi({

            jsApiList: ['openEnterpriseChat'], // 需要检测的JS接口列表,所有JS接口列表见附录2,

            success: function(res) {

                alert("===res=="+res.errMsg);

            }

        })*/

          wx.openEnterpriseChat({

            // 注意:userIds和externalUserIds至少选填一个,且userIds+externalUserIds总数不能超过2000。

            userIds: 'xxxxx',    //参与会话的企业成员列表,格式为userid1;userid2;...,用分号隔开。

            externalUserIds: '', // 参与会话的外部联系人列表,格式为userId1;userId2;…,用分号隔开。

            groupName: '核价',  // 必填,会话名称。单聊时该参数传入空字符串""即可。

            success: function(res) {

alert("===成功==");

            },

            fail: function(res) {

                if(res.errMsg.indexOf('function not exist') > -1){

                    alert('版本过低请升级')

                }

            }

        });

    });

This is the content of the page. After Android opens the page, it directly creates a session. IOS doesn't respond. I set debug to true and IOS displays config:ok After the checkjsapi is opened, res.errMsg :openEnter priseChat:ok , but the session was not created automatically, and I did not execute it by clicking open enterprise chat alone. The jweixin-1.2.0.js file is referenced. Please help to see what's going on. wx.config ({ debug:true , appid: 'XXXXXXXXXXXX', / / required, the Corpid of enterprise wechat must be consistent with the currently logged in enterprise, AgentID: 'xxxxxxxxxxxxxxx', / / required, the application ID of enterprise wechat (e.g. 1000247) timestamp:timestamp , nonceStr:nonceStr , signature:signature , jsApiList:['openEnterpriseChat'] }); wx.ready (function(){ /* wx.checkJsApi ({jsapilist: ['openenterprisechat '], / / the list of JS interfaces to be detected. For the list of all JS interfaces, see Appendix 2, success: function (RES) {alert ("= = res = ="+ res.errMsg ); } })*/ wx.openEnterpriseChat ({/ / Note: select at least one userids and externaluserids, and the total number of userids + externaluserids cannot exceed 2000. Userids: 'xxxxx', / / list of enterprise members participating in the session in the format of userid1; userid2;..., separated by semicolons. Externaluserids: ', / / list of external contacts participating in the session, in the format of userid1; userid2 , separated by semicolons. Groupname: 'price evaluation', / / required, session name. In single chat, this parameter can pass in the empty string. Success: function (RES) {alert ("= = success = =");}, fail: function (RES) {if( res.errMsg.indexOf ('function not exist ') > - 1) {alert ('upgrade if version is too low')}}});};

回答:

企业微信运营专员-千夜:

您好,可以提供下以下信息确认下

代码片段:

Corpid:

问题成员手机号:

出现问题时间点(具体到月日时分):

截图:

-EOF-

AI助手支持GPT4.0