Skip to content

前端-微信分享时分享from参数的添加和地址发生裁剪 #13

Description

@agger21

地址参数添加原因

对于IOS系统会自动增加如下参数:

朋友圈 from=timeline&isappinstalled=0
微信群 from=groupmessage&isappinstalled=0
好友分享 from=singlemessage&isappinstalled=0

对于安卓系统会自动添加如下参数:

朋友圈 from=timeline
微信群 from=groupmessage
好友分享 from=singlemessage

地址发生裁剪原因

微信分享地址发生裁剪

原因:我们模板路由采用的是hash模式,分享时微信会把在#后面的字符去除。
解决:在分享的时候在#前面加上?,成为?#;(具体操作在除form参数时有处理)

解决:

除去from参数再自己组装自己所需的参数,组装成一个分享链接分享。(具体的看模板的路由拦截)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions