文档
测试

groundList

POST
api/v1/groundList

接口描述

钓场列表

请求参数

参数名
类型
描述
必填
type
string
钓场类型 热门 hot 关注 follow 今日 today 附近 nearby 出鱼量 fish_weight 新上线 new 人气 visit
必填
lat
string
经度
必填
lng
string
纬度
必填
page
integer
当前页数
必填
fish_name
string
鱼名称
必填
ground_name
string
钓场名称
必填

php

$client = new \GuzzleHttp\Client(); $response = $client->post( 'http://sns.shenruxiang.com/api/v1/groundList', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'type' => 'id', 'lat' => 'aut', 'lng' => 'dignissimos', 'page' => 19, 'fish_name' => 'possimus', 'ground_name' => 'minus', ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

const url = new URL( "http://sns.shenruxiang.com/api/v1/groundList" ); let headers = { "Content-Type": "application/json", "Accept": "application/json", }; let body = { "type": "id", "lat": "aut", "lng": "dignissimos", "page": 19, "fish_name": "possimus", "ground_name": "minus" } fetch(url, { method: "POST", headers: headers, body: body }) .then(response => response.json()) .then(json => console.log(json));

返回值

{ "code": 0, "msg": "请求成功", "data": { "current_page": 1, "data": [ { "id": 11, "name": "青鱼湾休闲垂钓园", "src": "\/storage\/2020-09-21\/6d2b94a257d0097ba25d70b3a8d27020.jpg", "mobile": "18326024918", "address": "北京市朝阳区亮马桥路41号", "ticket_num": 0, "fish_weight": "10【出鱼量】", "hot": "hot【值为hot有hot标签,值为空标签为空】", "new": "new【值为new有new标签,参数为空标签为空】", "visit_num": 14, "distance": 6702.31, "fish_names": "鲤鱼 鲫鱼 ", "fish_datas": "鲤鱼13.00 鲫鱼12.00 ", "pond_time": "今日营业 09.22 00:00 ~ 09.23 00:00" }, { "id": 12, "name": "海天瀑布钓场", "src": "\/storage\/2020-09-21\/4c5fbaeb8a5f4d1c0b8be753ddc28101.jpg", "mobile": "18326024918", "address": "北京市门头沟区", "ticket_num": 0, "fish_weight": "10【出鱼量】", "hot": "hot【值为hot有hot标签,值为空标签为空】", "new": "new【值为new有new标签,参数为空标签为空】", "visit_num": 7, "distance": 6730.51, "fish_names": "鲤鱼 鲫鱼 ", "fish_datas": "鲤鱼13.00 鲫鱼12.00 ", "pond_time": "近期营业 09.23 00:00 ~ 09.23 00:00" }, { "id": 13, "name": "森林钓场", "src": "\/storage\/2020-09-21\/d0c78fd29a30b4b9592aea38ec50aceb.jpg", "mobile": "18326024918", "address": "北京市朝阳区安立路", "ticket_num": 0, "fish_weight": "10【出鱼量】", "hot": "hot【值为hot有hot标签,值为空标签为空】", "new": "new【值为new有new标签,参数为空标签为空】", "visit_num": 3, "distance": 6699.21, "fish_names": "鲤鱼 鲫鱼 ", "fish_datas": "鲤鱼13.00 鲫鱼12.00 ", "pond_time": "近期营业 09.23 00:00 ~ 09.24 00:00" }, { "id": 14, "name": "空谷回音钓场", "src": "\/storage\/2020-09-21\/e286ebc4af38bde5bd4c2dc6253aa59a.jpg", "mobile": "18326024918", "address": "北京市朝阳区惠新西街1号", "ticket_num": 0, "fish_weight": "10【出鱼量】", "hot": "hot【值为hot有hot标签,值为空标签为空】", "new": "new【值为new有new标签,参数为空标签为空】", "visit_num": 5, "distance": 6701.43, "fish_names": "鲤鱼 鲫鱼 ", "fish_datas": "鲤鱼13.00 鲫鱼12.00 ", "pond_time": "近期营业 09.24 00:00 ~ 09.23 00:00" }, { "id": 15, "name": "黄天叶垂钓园", "src": "\/storage\/2020-09-21\/6c6c68908f24295e659d545ab8c120a1.jpg", "mobile": "18326024918", "address": "北京市海淀区万寿山后街", "ticket_num": 0, "visit_num": 6, "distance": 6706.19, "fish_names": "", "fish_datas": "", "pond_time": "钓场休息中" }, { "id": 17, "name": "夜色垂钓场", "src": "\/storage\/2020-09-21\/db75f676ba73444b5f5d7b7ae11fb09a.jpg", "mobile": "18326024918", "address": "北京市通州区漷马路旧线", "ticket_num": 0, "visit_num": 4, "distance": 6717.21, "fish_names": "", "fish_datas": "", "pond_time": "钓场休息中" }, { "id": 19, "name": "清鱼湾", "src": "\/storage\/2020-09-21\/2cc3ddf699533ac6f4ae3b7c5f25e41a.jpg", "mobile": "18326024918", "address": "云南省昆明市五华区二环北路", "ticket_num": 0, "visit_num": 0, "distance": 8756.01, "fish_names": "", "fish_datas": "", "pond_time": "钓场休息中" } ], "first_page_url": "https:\/\/fish.shenruxiang.com\/api\/v1\/groundList?page=1", "from": 1, "next_page_url": null, "path": "https:\/\/fish.shenruxiang.com\/api\/v1\/groundList", "per_page": 20, "prev_page_url": null, "to": 7 } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundList" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"type":"id","lat":"aut","lng":"dignissimos","page":19,"fish_name":"possimus","ground_name":"minus"}'