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

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

相关文章
查询提现状态API 返回输入商户类型非小微商户
添加分账接收方接口,如果是小程序下的单要分账,接口中的公众账号ID是不是填 小程序的appid?
PC端企业微信聊天侧边栏调用wx.qy.sendChatMessage发送小程序参数丢失?
会话内容存档BUG 获取媒体文件获取数据问题?
(in promise) MiniProgramError
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8437
问题? 7656
如何快速搭建抽奖助手小程序(无需代码知识) 5222
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6494
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5792
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5454
如何解决渲染层网络错误Failed to load media? 16701
小程序找号找回 释放昵称? 2732
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2604
删除部分微信用户个人数据的通知,怎么删除? 5669