V2 0/activity/get single dp

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

功能说明

获取在线选座单个场次

URL

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

返回格式

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

HTTP请求方式

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

输入参数说明

参数名称 是否必须 类型 描述
goods_group_id
int
票务id
dp_id

int
场次id

请求示例

正式环境 

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

返回参数说明

参数 说明
status
响应状态
ticket_areas
场次区域信息
dp_map
场次图
dp_id
场次id
ticket_time
演出时间
areas
区域列表
id
票种座位拓展表id
ticket_id
票种id
hot_zone
热区坐标:以空格分隔
area_name
区域名称
area_id
区域id
price
座位-价格
color
座位-颜色
remark
备注:不是套票就是空字符串,是套票返回‘价格*套票包含数量’

正确返回示例

{
    "status": "success",
    "ticket_areas": {
        "dp_map": "http://imgtest.gewara.cn/images/theatre/theatreroom/201601/s16ec39e9_15259730118__7fcf.png",
        "dp_id": "38118722",
        "ticket_time": "2017-01-19 21:23:00",
        "areas": [
            {
                "id": "1439",
                "ticket_id": "8119",
                "hot_zone": "147,70 115,151 179,161 259,169 310,147 282,72 146,72",
                "area_name": "前排区域",
                "area_id": "35757139",
                "price": "180",
                "color": "",
                "remark": ""
            },
            {
                "id": "1433",
                "ticket_id": "8113",
                "hot_zone": "95,151 61,184 107,214 233,214 340,211 373,173 330,151 256,174 186,172 111,159",
                "area_name": "后排区域",
                "area_id": "35757138",
                "price": "180",
                "color": "",
                "remark": ""
            },
            {
                "id": "1431",
                "ticket_id": "8111",
                "hot_zone": "129,267 155,341 277,340 306,255 123,257",
                "area_name": "楼上区域",
                "area_id": "35757137",
                "price": "380",
                "color": "",
                "remark": ""
            },
            {
                "id": "1431",
                "ticket_id": "8111",
                "hot_zone": "129,267 155,341 277,340 306,255 123,257",
                "area_name": "楼上区域",
                "area_id": "35757137",
                "price": "700",
                "color": "",
                "remark": "¥380×2"
            }
        ]
    }
}

错误返回示例

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>