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
const WXApi = wxopensdk.WXAPIFactory.createWXAPI(APP_ID)
let req = new wxopensdk.OpenCustomerServiceChatReq()
req.corpId = "gh_eb7dfb8500b2";
req.url = httpUrl;
WXApi.sendReq(getContext(this) as common.UIAbilityContext, req)
appIDcorpId "gh_eb7dfb8500b2"url:
https:
你好,复现问题时麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点,bundleid、identifier、appid和opensdk的调用时间点(可以社区私信提供)和open帐号后台移动应用签名包名截图,私信后请在评论区回复
//跳转企业微信客服 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)提示跳转失败,为什么呢