1.添加补充信息
接口
POST https://open.jisuapp.cn/business/Shop/AddDelivery
请求参数说明
Content-Type: application/x-www-form-urlencoded
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| access_token | String | Y | 用户授权的唯一票据 |
| delivery_name | string | Y | 模板名称 |
| delivery_info | array | Y | 表单结构,详见下 |
delivery_info 结构:
第一层是固定结构:
delivery_info[0][name]: 给卖家留言
delivery_info[0][type]: text
delivery_info[0][is_hidden]: 1
delivery_info[0][is_required]: 1
字段解释;
name: 信息名称
type: 类型(text->文本 mul-text->多文本 picture->图片)
is_hidden: 是否隐藏 (0否 1是)
is_required: 是否必填(0否 1是)
返回参数
| 参数 | 类型 | 说明 |
|---|---|---|
| status | int | 状态码 0成功 1失败 |
| data | string | 说明 |
参数返回示例
{
"status": 0,
"data": "success"
}
2.获取补充信息列表
接口
POST https://open.jisuapp.cn/business/Shop/GetDeliveryList
请求参数说明
Content-Type: application/x-www-form-urlencoded
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| access_token | String | Y | 用户授权的唯一票据 |
| page | string | Y | 分页页数 |
| page_size | int | Y | 分页个数 |
返回参数
| 参数 | 类型 | 说明 |
|---|---|---|
| status | int | 状态码 0成功 1失败 |
| data | string | 说明 |
参数返回示例
{
"status": 0,
"data": [{
"id": "166",
"app_id": "FatFitm5Tm",
"delivery_name": "fdsf23df",
"delivery_info": [{
"name": " \u7ed9\u5356\u5bb6\u7559\u8a00",
"type": " text",
"is_hidden": " 1",
"is_required": " 1"
}, {
"name": " 323",
"type": " text",
"is_hidden": " 1",
"is_required": " 1"
}],
"add_time": "2019-07-11 17:29:06",
"is_default": "0"
}, {
"id": "157",
"app_id": "FatFitm5Tm",
"delivery_name": "zyp33",
"delivery_info": [{
"name": "\u7ed9\u5356\u5bb6\u7559\u8a00",
"type": "text",
"is_hidden": "1",
"is_required": "1"
}, {
"name": "\u8865\u51451",
"type": "text",
"is_hidden": "1",
"is_required": "1"
}],
"add_time": "2019-06-25 11:14:08",
"is_default": "0"
}],
"is_more": 0,
"current_page": 1,
"count": "2",
"total_page": 1
}