V2 0/activity/get seat info

来自技术开发小组内部wiki
跳转至: 导航搜索

功能说明

获取当前场次和区域的座位信息

URL

http://[域名]//v2_0/activity/get_seat_info

返回格式

支持json,xml.通过format参数来控制

HTTP请求方式

POST.可以post的数据为xml或json.

输入参数说明

参数名称 是否必须 类型 描述
area_id

int
区域id
dp_id

int
场次id

请求示例

正式环境 
http://api.fumubang.com/v2_0/activity/get_seat_info
测试环境
http://api.fumubang.net/v2_0/activity/get_seat_info
本地环境
http://dev-api.fumubang.net/v2_0/activity/get_seat_info

返回参数说明

参数 说明
status
响应状态
seat_desc
座位列表
local_seat_info
座位名称
  tickets
 
票种列表
 
  tname
    票种名称  
  limit_min     最小购买数  
  id
    票种座位拓展表id
 
  ticket_id
    票种id
 
  limit_max
    最大购买数
 
  area_name
    区域名称
 
  area_id
    区域id
 
  price
    座位-价格
 
color
座位-颜色
linenum
总行号
ranknum
总列号
is_docuble_tickets
是否支持套票;1:支持 0:不支持
ticket_rule
套票规则
disid
套票id
price
套票总价
color
座位颜色
remark
备注信息
quantity
包含张数
allownum
剩余库存张数
booking
预定:1可预定,0否
max_buy
单次最大购买张数
priceid
价格id

正确返回示例

{
    "status": ​200,
    "seat_desc": [
        [
            {
                "status": "A",
                "seat_info": "1:19",
                "local_seat_info": "1排19号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum1"
            },
            {
                "status": "A",
                "seat_info": "1:17",
                "local_seat_info": "1排17号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum2"
            },
            {
                "status": "A",
                "seat_info": "1:15",
                "local_seat_info": "1排15号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum3"
            },
            {
                "status": "A",
                "seat_info": "1:13",
                "local_seat_info": "1排13号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum4"
            },
            {
                "status": "A",
                "seat_info": "1:11",
                "local_seat_info": "1排11号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum5"
            },
            {
                "status": "A",
                "seat_info": "1:9",
                "local_seat_info": "1排9号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum6"
            },
            {
                "status": "A",
                "seat_info": "1:7",
                "local_seat_info": "1排7号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum7"
            },
            {
                "status": "A",
                "seat_info": "1:5",
                "local_seat_info": "1排5号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum8"
            },
            {
                "status": "A",
                "seat_info": "1:3",
                "local_seat_info": "1排3号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum9"
            },
            {
                "status": "A",
                "seat_info": "1:1",
                "local_seat_info": "1排1号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum10"
            },
            {
                "status": "A",
                "seat_info": "1:2",
                "local_seat_info": "1排2号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum11"
            },
            {
                "status": "A",
                "seat_info": "1:4",
                "local_seat_info": "1排4号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum12"
            },
            {
                "status": "A",
                "seat_info": "1:6",
                "local_seat_info": "1排6号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum13"
            },
            {
                "status": "A",
                "seat_info": "1:8",
                "local_seat_info": "1排8号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum14"
            },
            {
                "status": "A",
                "seat_info": "1:10",
                "local_seat_info": "1排10号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum15"
            },
            {
                "status": "A",
                "seat_info": "1:12",
                "local_seat_info": "1排12号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum16"
            },
            {
                "status": "A",
                "seat_info": "1:14",
                "local_seat_info": "1排14号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum17"
            },
            {
                "status": "A",
                "seat_info": "1:16",
                "local_seat_info": "1排16号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum18"
            },
            {
                "status": "A",
                "seat_info": "1:18",
                "local_seat_info": "1排18号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum19"
            },
            {
                "status": "A",
                "seat_info": "1:20",
                "local_seat_info": "1排20号",
                "price": "380",
                "priceid": "35755633",
                "color": "#E914DC",
                "key": "seatnum20"
            }
        ]
    ],
    tickets": [

{

    "tname": "2017-01-1419: 30: 00",
    "limit_min": "1",
    "limit_max": "6",
    "id": "1413",
    "ticket_id": "8093",
    "area_name": "前排区域",
    "area_id": "35757134",
    "dp_id": "38118721",
    "price": "380.00",
    "color": "#E914DC",
    "linenum": "20",
    "ranknum": "20",
    "is_docuble_tickets": "1",
    "ticket_rule":

[

        {
            "disid": "35755634",
            "price": "700",
            "color": "#E914DC",
            "remark": "",
            "quantity": "2",
            "allownum": "0",
            "maxbuy": "6",
            "booking": "1",
            "tag": "discount",
            "priceid": "35755633"
        }
    ]

},
{

    "tname": "2017-01-1419: 30: 00",
    "limit_min": "1",
    "limit_max": "6",
    "id": "1411",
    "ticket_id": "8091",
    "area_name": "前排区域",
    "area_id": "35757134",
    "dp_id": "38118721",
    "price": "280.00",
    "color": "#0AEF05",
    "linenum": "20",
    "ranknum": "20",
    "is_docuble_tickets": "0",
    "ticket_rule": [ ]

},

        {
            "tname": "2017-01-1419: 30: 00",
            "limit_min": "1",
            "limit_max": "6",
            "id": "1409",
            "ticket_id": "8089",
            "area_name": "前排区域",
            "area_id": "35757134",
            "dp_id": "38118721",
            "price": "180.00",
            "color": "#FF0000",
            "linenum": "20",
            "ranknum": "20",
            "is_docuble_tickets": "0",
            "ticket_rule": [ ]
        }
    ]

}

错误返回示例

1 <syntaxhighlight lang="php"> <error_code>300001</error_code> <error_msg>请求参数有误</error_msg> </syntaxhighlight> 2 <syntaxhighlight lang="php"> <error_code>300001</error_code> <error_msg>数据有误</error_msg> </syntaxhighlight>