ymx-qq
    正在准备搜索索引...

    接口 ShareData

    分享数据(由业务后台组装并签名,客户端不持有 appKey)

    interface ShareData {
        nonce: number;
        openId?: string;
        shareJson: string;
        shareJsonSign: string;
        timestamp: number;
        type: ShareType;
    }
    索引

    属性

    nonce: number

    随机自然数(业务后台生成)

    openId?: string

    用户 openid(可选,登录后获得)

    shareJson: string

    分享内容 JSON 字符串(业务后台组装)

    • type=2, msg_style=0:{ msg_style: 0, title, summary, brief, url, picture_url }
    • type=2, msg_style=6:{ msg_style: 6, share_uris: [file://...] }
    • type=3009:{ title, summary, targetUrl, imageUrls }
    shareJsonSign: string

    业务后台使用互联 appKey 对 shareJson+timestamp+nonce 计算 分享签名

    timestamp: number

    分享时的时间戳(秒,业务后台生成)

    type: ShareType

    分享类型