文档
测试

groundPondPay

POST
api/v1/groundPondPay

接口描述

用户鱼塘门票支付

请求参数

参数名
类型
描述
必填
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/groundPondPay', [ 'headers' => [ 'Content-Type' => 'application/json', 'Accept' => 'application/json', ], 'json' => [ 'user_id' => 19, 'token' => 7, 'pond_id' => 16, 'seat' => 9, ], ] ); $body = $response->getBody(); print_r(json_decode((string) $body));

js

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

返回值

{ "code": 0, "msg": "支付成功", "data": [] }

bash

curl -X POST \ "http://sns.shenruxiang.com/api/v1/groundPondPay" \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -d '{"user_id":19,"token":7,"pond_id":16,"seat":9}'