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

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:05 3200 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
微信小游戏播放video,loading不会消失
开发过程中为什么无法新建变量?
请问在日常体验中有发现同一款游戏涉嫌套取其他游戏版号换多个名字同时上线,这种不是已经违反政策了吗?
微信小游戏 wx.createVideo播放视频的次数到达一定数量,就会返回解码失败?
初始化微信激励广告组件会掉帧?
随便看看
你的微信登录环境存在异常,为了账号安全,本次登录已失效? 124
你的微信登录环境存在异常,为了账号安全,本次登录已失效? 129
你的微信登录环境存在异常,为了账号安全,本次登录已失效? 118
wx.requestSubscribeMessage返回结果里面无法获取带横线ID的结果 126
wx.requestSubscribeMessage返回结果里面无法获取带横线ID的结果 147
小程序镶嵌H5页面不能支付? 88
企业微信第三方应用线上版调用JSSDK的getContext报没有权限的问题 74
企业微信第三方应用线上版调用JSSDK的getContext报没有权限的问题 968
一删除onShareAppMessage就报错,怎么肥事呀,早知道不更新了? 637
更新后新建页面,一删除掉onShareAppMessage就报错,有人遇到吗? 632