方法一:通过URL传入客户身份识别的

使用方法:

  1. 作品链接上加previewer=mp和userInfo这两个参数;
  2. 在userInfo参数中传入平台标识和身份信息;


userInfo字段说明

字段

类型

描述

userInfo

object

身份信息

identitys

object[]

多组身份信息 ,最大支持3组身份信息

identityType

string

身份类型:openid=微信环境下的openid、unionid=微信环境下的unionid,fans_id=有赞商城识别id,支持自定义类型标识

identityValue

string

身份类型对应的id取值

platform

string

平台标识,标记客户身份来源,兔展工作台企业->数据集成->自建应用->应用ID,仅支持审核通过的应用

说明:若需要传入自定义客户身份,则platform和identitys字段均为必填项


数据结构:

{
    "userInfo": {
        "identitys": [
            {
                "identityType": "",
                "identityValue": ""
            },
            {
                "identityType": "",
                "identityValue": ""
            },
            {
                "identityType": "",
                "identityValue": ""
            }
        ],
        "platform": ""
    }
}



如果有其它的身份信息,也可以附加在userInfo内进行上报,例如微信环境下

{
    "userInfo": {
        "identitys": [
            {
                "identityType": "openid",
                "identityValue": "xxxx-xxxxx-xxxxx-xxxxx"
            }
        ],
        "platform": "wx",
        "nickname": "xxxx",
        "headimgurl": "xxxx",
        "sex": "0",
        "unionid": "xxxx-xxxx-xxxx-xxxxx"
    }
}







url地址带参示范

'https://作品链接地址?previewer=mp&userInfo='+encodeURIComponent(JSON.stringify({"identitys":[{"identityType":"xxx","identityValue":"xxx"}],"platform":"xxx"}));



访问转换后url地址,验证上报参数


方法二:通过斐波SDK传入客户身份识别的数据

具体查看文档:H5-SDK