文档
测试

groundPondPayDetail

POST
api/v1/groundPondPayDetail

接口描述

用户挑选/不挑选鱼塘座位后支付详情

请求参数

参数名
类型
描述
必填
user_id
integer
用户id
必填
token
integer
用户token
必填
pond_id
integer
鱼塘id
必填
seat
integer
座位号 可选
必填

php

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

js

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

返回值

{ "code": 0, "msg": "请求成功", "data": { "id": 2, "name": "接口测试钓场【钓场名】", "pond": { "id": "19【鱼塘id】", "name": "接口测试鱼塘【鱼塘名】", "price": "100.00【鱼塘价格】", "start_time": "2020-09-13 10:00:00【鱼塘开始时间】", "end_time": "2020-09-16 10:00:00【鱼塘结束时间】", "seat_num": "1,2,3,4,5【可选座位号】", "ground_id": "2【钓场id】" }, "select_seat_num": "5【用户已选座位号】", "user_money": "8399.00【用户余额】" } }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundPondPayDetail" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":10,"token":15,"pond_id":3,"seat":7}'