剪不断理还乱
剪不断理还乱
  • 发布:2025-10-20 12:05
  • 更新:2025-10-20 12:05
  • 阅读:14

5+app 微信分享 ios18 无法分享

分类:5+ SDK

一种是一直跳微信, 显示正在连接, 然后跳回app (一直这样)
一种是跳微信 不出现选对话, 停留在消息列表
一种是跳微信后立马跳回app

三种随机出现.

ios 18 部分机型能复现.

plus.share.getServices(function(serviceArray) {  
  let service = serviceArray.find(function (service) {  
    return service.id === 'weixin'  
    })  
    if (service && service.authenticated) {  
        service.send({  
            type: 'miniProgram',  
            title: productName,  
            content:'',  
            thumbs: [imgSrc +'?imageMogr2/thumbnail/500x400/pad/1/color/I2Y1ZjdmYQ'],  
            miniProgram: {  
                id: 'gh_006794209f7c',  
                path: '/pages/product-info/index?scene=' + encodeURIComponent('p_id=' + productId + ';' + companyId + '&c_id=' +  companyId),  
                type: MINI_PROGRAM_SHARE_TYPE,  
                webUrl: 'https://www.baidu.com',  
            },  
            extra: {  
                scene: 'WXSceneSession',  
            }  
        }, function() {  
            mui.toast("分享成功!")  
        }, function(e) {  
            mui.toast("分享失败!")  
        })  
    } else {  
        mui.toast("分享服务未授权或没有找到,请联系客服!")  
    }  
}
2025-10-20 12:05 负责人:无 分享
已邀请:

要回复问题请先登录注册