收藏
回答

小程序调用wx.openCustomerServiceChat 这个接口 无法正常跳转企业微信?

AppID
wx5c22d068017e1f45

域名已认证SSL,企微和小程序已关联,


以下是日志,各位大佬帮忙看看

===== 客服组件执行日志 =====

生成时间:2026/2/3 19:02:59

当前URL:https://shop.wodeer.com.cn/giftApp?tab=profile

UserAgent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 MicroMessenger/7.0.20.1781(0x6700143B) NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF WindowsWechat(0x63090a13) UnifiedPCWindowsWechat(0xf254162e) XWEB/18163 miniProgram/wx5c22d068017e1f45


【1】时间:2026/2/3 19:02:51

类型:INFO

描述:客服组件挂载完成

详细信息:{

  "component": "CustomerService",

  "currentUrl": "https://shop.wodeer.com.cn/giftApp",

  "kfid": "XXXXXXX",

  "corpId": "XXXXXXXX",

  "qrCodePath": "/assets/enterprise-wechat-qrcode-C65Fl_5T.jpg"

}

-------------------------

【2】时间:2026/2/3 19:02:55

类型:INFO

描述:触发「打开企业微信客服」操作

详细信息:kfid:kfcXXXXX,corpId:wwa4544XXXX

-------------------------

【3】时间:2026/2/3 19:02:55

类型:INFO

描述:开始检测运行环境

详细信息:读取navigator.userAgent

-------------------------

【4】时间:2026/2/3 19:02:55

类型:SUCCESS

描述:环境检测完成

详细信息:{

  "isMiniProgram": true,

  "isWeChat": true,

  "isEnterpriseWeChat": false,

  "userAgent": "mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/132.0.0.0 safari/537.36 micromessenger/7.0.20.1781(0x6700143b) nettype/wifi miniprogramenv/windows windowswechat/wmpf windowswechat(0x63090a13) unifiedpcwindowswechat(0xf254162e) xweb/18163 miniprogram/wx5c22d068017e1f45"

}

-------------------------

【5】时间:2026/2/3 19:02:55

类型:INFO

描述:当前环境:微信(含小程序WebView)

详细信息:尝试调用openCustomerServiceChat,URL:https://work.weixin.qq.com/kfid/kfc6902XXXXXX

-------------------------

【6】时间:2026/2/3 19:02:55

类型:INFO

描述:开始初始化微信JSSDK

详细信息:加载微信JSSDK脚本

-------------------------

【7】时间:2026/2/3 19:02:55

类型:WARN

描述:微信JSSDK已存在,跳过脚本加载

-------------------------

【8】时间:2026/2/3 19:02:55

类型:INFO

描述:JSSDK初始化完成,开始调用openCustomerServiceChat

详细信息:{

  "corpId": "wwa454474386c6ff34",

  "customerServiceUrl": "https://work.weixin.qq.com/kfid/kfc6902ded7XXXXX"

}

-------------------------

【9】时间:2026/2/3 19:02:55

类型:ERROR

描述:微信环境打开客服失败

详细信息:wx.openCustomerServiceChat is not a function


回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 本次回答由AI生成
    02-03
    有用
登录 后发表内容