简要描述:

  • 让利涨粉-PC端-获取设置

请求域名:

  • http://xx.com

请求URL:

xx.com/business/{公众号id}/plugin/DiscountHarvestFans/getSet

请求类型

POST

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回: ###默认值

{
	"result": 1,
	"msg": "成功",
	"data": {
		"is_open": 0,
		"discount_set": {
			"has_staff": {
				"is_open": 0
			},
			"first_staff": {
				"is_open": 0
			}
		},
		"staff_set": [],
		"link_open": 0
	}
}

非默认值

{
	"result": 1,
	"msg": "成功",
	"data": {
		"is_open": 0,//设置是否开启,0否1是
		"discount_set": {
			"has_staff": {// 好友专享
				"is_open": 0,// 0否1是
				"numerical_type": {// 立减
					"order_amount": 0,// 满额
					"discount_amount": 0// 优惠
				},// 两个包含type参数的对象二选一,下面同样
				"percentage_type": {// 金额
					"order_amount": 0,
					"discount_amount": 0
				}
			},
			"first_staff": {// 首次添加好友
				"is_open": 0,// 0否1是
				"numerical_type": {
					"order_amount": 0,
					"discount_amount": 0
				},
				"percentage_type": {
					"order_amount": 0,
					"discount_amount": 0
				}
			}
		},
		"staff_set": [// 添加成员
			{
				"staff_id" : 1,// 员工id
				"staff_name" : "哈哈哈",// 员工名称
				"tag_id" : "wqerkjklsafklasjktler",// 标签tag_id
				"tag_name" : "标签名"// 标签名称
			},
			{
				"staff_id" : 1,
				"staff_name" : "哈哈哈",
				"tag_id" : "wqerkjklsafklasjktler",
				"tag_name" : "标签名"
			},
		],
		"link_open": 0// 自动发送商品链接,0否1是
	}
}

错误时返回: