文档
测试

userGroundOrderDetail

POST
api/v1/userGroundOrderDetail

接口描述

钓场订单详情

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填
order_id
integer
订单id
必填

php

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

js

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

返回值

{ "code": 0, "msg": "请求成功", "data": { "id": 1, "order_num": "123", "ground_id": 1, "pond_id": 1, "user_name": "彭123", "origin_pond_id": 0, "user_id": 1, "num": 1, "seat": 1, "user_status": 1, "order_status": 1, "created_at": "2020-09-07 22:15:36", "updated_at": "2020-09-07 22:15:39", "ground": { "id": 1, "user_id": 1, "name": "青鱼湾休闲垂钓园", "src": "\/storage\/2020-09-07\/5bcd14e25001f8cc1897a030d0a16854.jpg", "address": "天津市武清区杨柳树", "lng": "116.443938", "lat": "39.961184", "position": "杨柳树1023号", "area": "153.00", "desc": "钓场描述", "status": 1, "visit_num": 0, "ticket_num": 0, "fish_weight": 0, "auth_status": 1, "created_at": "2020-09-07 03:25:54", "updated_at": "2020-09-07 13:02:05" }, "ground_pond": { "id": 1, "ground_id": 1, "user_id": 1, "name": "鲤鱼塘", "water_depth": 100, "type": 1, "status": 1, "seat_type": 1, "seat_total": 100, "seat_select": 50, "seat_num": "1,2,3,4,5", "people_num": 66, "fish_weight": 180, "price": "100.00", "desc": "鱼塘描述", "src": "\/xx1.jpg,\/xx2.jpg", "is_log": 0, "start_time": "2020-08-01 10:00:00", "end_time": "2020-08-10 10:00:00", "created_at": "2020-09-07 14:15:37", "updated_at": "2020-09-07 15:28:17" } } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/userGroundOrderDetail" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":18,"token":10,"order_id":5}'