简要描述:
请求域名:
- http://xx.com
请求URL:
POST:plugin.agent-enquiry.Backend.controllers.tag.edit
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
id | 是 | int | 标签ID |
返回示例(不是post情况下,是post就和新增一样传,就编辑了):
正确时返回:
array:9 [▼
"id" => 45
"uniacid" => 6
"bg_color" => "3"
"words_color" => "4"
"created_at" => "2020-09-09 16:20:21"
"updated_at" => "2020-09-09 16:20:21"
"has_many_area" => array:2 [▼
0 => array:8 [▼
"id" => 7
"uniacid" => 6
"tag_id" => 45
"area_id" => 110000
"level" => 1
"created_at" => "2020-09-09 16:20:21"
"updated_at" => "2020-09-09 16:20:21"
"belongs_to_area" => array:4 [▶]
]
1 => array:8 [▼
"id" => 8
"uniacid" => 6
"tag_id" => 45
"area_id" => 110101
"level" => 3
"created_at" => "2020-09-09 16:20:21"
"updated_at" => "2020-09-09 16:20:21"
"belongs_to_area" => array:4 [▶]
]
]
"has_many_street" => array:1 [▼
0 => array:8 [▼
"id" => 2
"uniacid" => 6
"tag_id" => 45
"area_id" => 110101002
"level" => 4
"created_at" => "2020-09-09 16:20:21"
"updated_at" => "2020-09-09 16:20:21"
"belongs_to_street" => array:4 [▶]
]
]
"area" => "北京;东城区;景山街道;"
]
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
result | int | 0:失败,1:成功 |
msg | string | 提示消息 |
data | array | 返回数据 |
返回参数 data 说明:
参数名 | 类型 | 说明 |
---|---|---|
area | string | 地区名 |
has_many_area | array | 省市区标签关联 |
has_many_street | array | 街道标签关联 。都是用来回显比对 |
备注:
是post就是提交用,不是post就跳转到编辑的接口