文档
测试

groundTicketDetail

POST
api/v1/groundTicketDetail

接口描述

钓场详情-鱼塘是否有票

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填
ground_id
integer
钓场id
必填
pond_date
date
日期格式:2019-01-01 08:00:00
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/groundTicketDetail', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 10, 'token' => 4, 'ground_id' => 1, 'pond_date' => 'facilis', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/groundTicketDetail" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "user_id": 10, "token": 4, "ground_id": 1, "pond_date": "facilis" } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": { "data": "20", "week": "周日", "list": [ { "id": "18【鱼塘id】", "name": "接口测试鱼塘【鱼塘名称】", "type": "1【鱼塘类别 1冷塘 2温塘 3热塘】", "status": "2【鱼塘状态 1待上架 2上架中 3 下架】", "seat_type": "1【选座方式1随机派发钓位号2自主选钓位号】", "people_num": "66【【人数】】", "price": "100.00【门票价格】", "start_time": "2020-09-15 10:00:00【开始时间】", "end_time": "2020-09-15 10:00:00【结束时间】", "pond_fish": [ { "name": "鲤鱼【鱼名】", "price": "15.00【回购价格】", "pond_id": "18【鱼塘id】", "weight": "100【重量斤】" }, { "name": "鲫鱼", "price": "20.00", "pond_id": 10, "weight": "80.00" } ], "fish_name": "鲤鱼,鲫鱼【鱼塘含有鱼名称】", "ticket_status": "1【1.未开始 2. 售票 3. 已售完 4. 已结束】" }, { "id": 17, "name": "接口测试鱼塘", "type": 1, "status": 2, "seat_type": 1, "people_num": 66, "price": "100.00", "start_time": "2020-09-14 10:00:00", "end_time": "2020-09-23 10:00:00", "pond_fish": [], "fish_name": "", "ticket_status": "1【1.未开始 2. 售票 3. 已售完 4. 已结束】" }, { "id": 18, "name": "接口测试鱼塘", "type": 1, "status": 2, "seat_type": 1, "people_num": 66, "price": "100.00", "start_time": "2020-09-15 10:00:00", "end_time": "2020-09-26 10:00:00", "pond_fish": [ { "name": "鲤鱼", "price": "15.00", "pond_id": 18, "weight": "100.00" }, { "name": "鲫鱼", "price": "20.00", "pond_id": 18, "weight": "80.00" } ], "fish_name": "鲤鱼,鲫鱼" }, { "id": 24, "name": "接口测试鱼塘", "type": 1, "status": 2, "seat_type": 1, "people_num": 66, "price": "100.00", "start_time": "2020-09-13 10:00:00", "end_time": "2020-09-27 10:00:00", "pond_fish": [], "fish_name": "" } ] } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundTicketDetail" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":10,"token":4,"ground_id":1,"pond_date":"facilis"}'