请问PC端企业微信支持打开会话窗口吗?

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

AI助手支持GPT4.0

请问PC端企业微信支持打开会话窗口吗?
问题类型 API/组件名称 终端类型 微信版本 基础库版本
需求 wx.openEnterpriseChat 工具 3.0.25.2103 3.0.25




请问企业微信PC端的打开会话窗口接口是否可用, 现在安卓端完全正常, PC端就会被报错。。


 onSession() {      const external_userid = this.external_userid;      console.log("external_userid", external_userid);      if (!external_userid) {        this.$toast("非企业微信联系人无法发起聊天!");        return;      }      console.log(this.$wx.openEnterpriseChat, "this.$wx.openEnterpriseChat");      this.$wx.openEnterpriseChat({        userIds"",        externalUserIds: external_userid,        groupName""// 必填,会话名称。单聊时该参数传入空字符串""即可。        successfunction(res{          console.log("success", res);          // 回调        },        failfunction(res{          console.log("fail", res);          if (res.errMsg.indexOf("function not exist") > -1) {            alert("版本过低请升级");          }        }      });    },

Problem type API / component name terminal type wechat version basic library version requirements wx.openEnterpriseChat Tool 3.0.25.2103 3 3.0.25 can I ask if the opening session window interface of the enterprise's wechat PC is available. Now the Android terminal is completely normal, and the PC side will be reported an error..  onSession() {      const external_ userid =  this.external_ userid;       console.log ("external_ userid", external_ userid);      if (!external_ Userid) {this. $toast ("non enterprise wechat contacts cannot initiate a chat! ");        return;      }       console.log (this.$ wx.openEnterpriseChat , "this.$ wx.openEnterpriseChat ");      this.$ wx.openEnterpriseChat ({        userIds: "",        externalUserIds: external_ Userid, groupname: ', / / required, session name. In single chat, this parameter can pass in the empty string.         success: function(res) {           console.log ("success", RES); / / callback}, fail: function (RES) { console.log ("fail", res);           if ( res.errMsg.indexOf ("function not exist") > - 1) {alert ("version too low, please upgrade";}}});},

回答:

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

您好,pc端是支持调用会话接口的,看这个是报错没权限,可以提供下调用的代码片段,企业corpid 应用agentid 和时间点看下

沧海的雨季:corpid企业id: ww94c86136fb1f6212
agentid: 1000051
出现问题时间点: 7月17日16时17分
沧海的雨季:另外在pc端无法使用ww-open-data组件, 在手机端也是完全正常的
企业微信运营专员-千夜:看了下后台日志,config是调用成功了,能否提供下成员的userid,捞下终端日志看看
企业微信运营专员-千夜:Rsp {"jsapilist":["agentConfig","openEnterpriseChat,selectExternalContact,agentConfig 仔细看了下日志,jsapilist这里三个接口是填在一起的,不能用逗号这么填吧,每个接口都用逗号区分开试试
沧海的雨季:userid是: CangHaiDeYuJi
沧海的雨季:改成这样还是不可以
企业微信运营专员-千夜:能再重试下看看吗,然后提供下时间点,之前的日志没了

-EOF-

AI助手支持GPT4.0