收藏
回答

app拉起微信客服功能,跳转至微信显示跳转失败,这是什么原因?

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug HarmonyOS 鸿蒙5.1.0 mate60 8.0.13.44

https://developers.weixin.qq.com/doc/oplatform/Mobile_App/APP_launch_wechat_customer_service.htmlhttps://developers.weixin.qq.com/doc/oplatform/Mobile_App/APP_launch_wechat_customer_service.html

  const httpIndex = url.indexOf('http');
  let httpUrl = ''
  if (httpIndex !== -1) {
    httpUrl = url.substring(httpIndex);
  }
  const APP_ID = Constants.WX.Appid // 填移动应用(App)的 AppId
  const WXApi = wxopensdk.WXAPIFactory.createWXAPI(APP_ID)

  let req = new wxopensdk.OpenCustomerServiceChatReq()
  req.corpId = "gh_eb7dfb8500b2"; // 企业ID
  req.url = httpUrl; // 客服URL
 WXApi.sendReq(getContext(this) as common.UIAbilityContext, req)



appIDcorpId "gh_eb7dfb8500b2"url:

https://work.weixin.qq.com/kfid/kfcc431ff1294449fe1?schema=1&refkey=AQAAWNVdLAqAOjDmIhtE9roA0efKlc7htTBiRzLiWYaqdyytC3qJtQ-atEJClw36U3Sc
回答关注问题邀请回答
收藏

3 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    2025-12-23

    你好,复现问题时麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点,bundleid、identifier、appid和opensdk的调用时间点(可以社区私信提供)和open帐号后台移动应用签名包名截图,私信后请在评论区回复

    2025-12-23
    有用
    回复
  • 苗miao
    苗miao
    2025-12-29
    //跳转企业微信客服
    let req = new wxOpenSdk.OpenCustomerServiceChatReq()
    req.corpId = "ww46f6b390af7829ad"; // 企业ID
    req.url = "https://work.weixin.qq.com/ca/cawcde6ef2db74872d";        // 客服URL
    WXApi.sendReq(getContext(globalThis) as common.UIAbilityContext, req)提示跳转失败,为什么呢
    
    2025-12-29
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    2025-12-22
    有用
    回复 2
登录 后发表内容