版本比较

标识

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

...

  1. 本授权功能需接入方企业先在营销云开通 “数据集成” 模块,并获得 “自建应用” 的使用权限。

  2. 自建应用内申请开通 编辑器 → 自定义接口鉴权,后续联系管理员审核通过。应用配置界面如下:



    添加后,点击“编辑”进入对应设置页


    注意:此处如果需要自定义外部的校验参数,需勾选”外部接口回调“选项进行配置,具体配置如下




  3. 完成配置后,点击“保存”即可。

  4. 在编辑器中,可在作品预览页面开启作品访问限制鉴权,或在活动玩法配置中对应限制选项中进行配置,配置界面如下:



  5. 此配置案例下,在用户访问作品时,会调用主办方配置的鉴权接口,发送在数据集成自定义接口鉴权中配置好的字段,通过接口返回结果来判断用户是否具有作品访问资格。

外部接口鉴权api参数说明

外部接口请求方法请求参数返回结构请求示例
获取鉴权条件GET-


代码块
languagejs
linenumbers
theme
true
Midnight
collapse
linenumberstrue
{
	"code": "200",
	"msg": "ok",
	"data": [
		{
			"label": "范围",
			"type": "area",
			"value": "",
			"children": [
				{
					"value": "80"
				},
				{
					"value": "100"
				}
			]
		},
		{
			"label": "性别",
			"type": "checkbox",
			"value": "",
			"children": [
				{
					"label": "男",
					"value": "1"
				},
				{
					"label": "女",
					"value": "2"
				}
			]
		},
		{
			"label": "部门",
			"value": "",
			"type": "select",
			"children": [
				{
					"label": "A部门",
					"value": "a"
				},
				{
					"label": "B部门",
					"value": "b"
				},
				{
					"label": "C部门",
					"value": "c"
				}
			]
		},
		{
			"label": "年龄",
			"type": "number",
			"value": "18",
			"children": []
		},
		{
			"label": "分类",
			"type": "cascader",
			"value": "",
			"children": [
				{
					"label": "项目分组",
					"value": "project_group",
					"children": [
						{
							"label": "新客户",
							"value": "1"
						},
						{
							"label": "未成交老客户",
							"value": "2"
						}
					]
				},
				{
					"label": "经纪人分组",
					"value": "broker_group",
					"children": [
						{
							"label": "自由合伙人",
							"value": "9004"
						},
						{
							"label": "代理公司",
							"value": "9003"
						}
					]
				}
			]
		}
	]
}

参数说明

label:标签名称

value:标签值

type:文本 text,数值 number,多选 select,单选 checkbox,区间 area ,级联 cascader

children:子集(只有在级联、多选、单选、区间类型时才不为空)

https://editor.test.rabbitpre.com/api/editor/proxy/thirddata/api/xxx/cms/getAuthConditions


保存通知接口POST


字段名称字段类型是否必传字段说明
userIdstringtrue当前用户id。透传到客户侧的参数
componentIdstringfalse
当前作品下玩法组件ID。透传到客户侧的参数
appIdstringfalse兔展作品ID。透传到客户侧的参数,该值是否一定有值和作品(玩法)的保存顺序有关
authScopenumbertrue

默认值 0。

0:玩法资格配置,

1:作品访问限制资格配置,

2:流程策略资格配置

externalConfigIdstringfalse外部配置id(传空代表新增配置,不为空代表修改配置)。也即该接口响应返回的configId字段值
treeNodesObjecttrue
└─ labelstringtrue名称
└─ valuestringtrue
└─ childrenObjectfalse子集
└─ typestringfalse文本 text,数值 number,多选 select,单选 checkbox,区间 area ,级联 cascader
sceneTypestringfalse玩法类型
externalConfigOperatorstringfalse外部参数运算符,选项有“ALL”和“IN”,分别对应满足全部与其中之一。默认值 IN
externalConfigValueslist<string>false外部条件值



代码块
languagejs
{
	"code:" 200,
	"data": {
		// 外部接口返回的配置id
		"configId": "aaa-bbb-ccc"
	}
}



https://editor.test.rabbitpre.com/api/editor/proxy/thirddata/api/xxx/cms/saveNotice


入参:

代码块
languagejs
themeMidnight
{
  "settingData": [
    {
      "label": "职业文本",
      "type": "text",
      "name": "professiontext",
      "value": "文本的值"
    },
    {
      "label": "用户身份数值",
      "type": "number",
      "name": "userFlagNumber",
      "operator": "EQ",
      "value": "9527"
    },
    {
      "label": "性别",
      "type": "select",
      "name": "gender",
      "operator": "IN",
      "value": [
        "1"
      ]
    },
    {
      "label": "是否新客户",
      "type": "checkbox",
      "name": "isCustomer",
      "value": "1"
    },
    {
      "label": "人生阶段",
      "type": "select",
      "name": "lifeStage",
      "operator": "IN",
      "value": [
        "1",
        "2",
        "3",
        "4"
      ]
    },
    {
      "label": "城市",
      "type": "cascader",
      "name": "city",
      "operator": "IN",
      "value": [
        {
          "label": "北京市",
          "value": "北京市",
          "type": null,
          "children": [
            {
              "label": "北京市",
              "value": "北京市",
              "type": null,
              "children": null
            }
          ]
        },
        {
          "label": "天津市",
          "value": "天津市",
          "type": null,
          "children": [
            {
              "label": "天津市",
              "value": "天津市",
              "type": null,
              "children": null
            }
          ]
        }
      ]
    }
  ],
  "externalConfigId": "",
  "userId": "2a40a6c6-7379-4961-9088-cb9a071f3a55",
  "componentId": "31bc2f36-c5de-4c34-adf6-c967a92561b8",
  "sceneType": "Tzappid",
  "appId": "31bc2f36-c5de-4c34-adf6-c967a92561b8",
  "authScope": 1
}










鉴权接口协议:

鉴权接口完整URL:自建应用方自己的 domain+URI

...