文档
测试

groundUserOrderDetail

POST
api/v1/groundUserOrderDetail

接口描述

用户鱼票详情

请求参数

参数名
类型
描述
必填
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/groundUserOrderDetail', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 2, 'token' => 15, 'order_id' => 18, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

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

返回值

{ "code": 0, "msg": "请求成功", "data": { "id": "12【订单id】", "order_num": "2020091510110049【订单号】", "ground_id": "2【钓场id】", "qr_src": "\/storage\/2020-09-15\/b2bda4fdad91a2a8833790143c8997b8.png【二维码】", "user_status": "1【订单状态】", "num": "数量", "user_name": "秃头已治愈【用户昵称 手机号暂不显示】", "start_time": "2020-09-16 10:00:00【有效期开始】", "end_time": "2020-09-16 10:00:00【有效期结束】", "phone": "18210685540", "ground": { "id": 2, "name": "接口测试钓场【钓场名】", "address": "天津市武清区杨柳树【钓场地址】", "mobile": "13012798888【钓场手机号】" } } }

bash

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