- 新闻
- 价格订单
- 价格套餐
- 攻击方法(协议)
- 其他
- 攻击任务
- SysDictionary
- SysDictionaryDetail
- Order
购买套餐
GET
/order/buyProduct
Order
请求参数
Authorization
在 header 添加参数
x-token
示例:
x-token: ********************
Query 参数
ID
integer
购买/升级套餐
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://47.254.255.198:8888/order/buyProduct?ID' \
--header 'x-token;'
返回响应
🟢200成功
application/json
Body
code
integer
可选
data
object
stresser.Order
ID
integer
主键ID
amount
number
金额
createdAt
string
创建时间
days
integer
购买时长(日)
num
string
订单号
orderNo
string
支付编号
paidAt
string
支付时间
payAmount
number
支付金额
payUrl
string
支付链接
product
object
stresser.Product
productId
integer
产品名称
remark
string
备注
status
string
订单状态
updatedAt
string
更新时间
userId
integer
用户
msg
string
可选
示例
{
"code": 0,
"data": {
"ID": 0,
"amount": 0,
"createdAt": "string",
"days": 0,
"num": "string",
"orderNo": "string",
"paidAt": "string",
"payAmount": 0,
"payUrl": "string",
"product": {
"ID": 0,
"concurrent": 0,
"createdAt": "string",
"dailyPrice": 0,
"days": 0,
"description": "string",
"maxSeconds": 0,
"name": "string",
"price": 0,
"priority": 0,
"status": "string",
"supportLevel": "string",
"updatedAt": "string"
},
"productId": 0,
"remark": "string",
"status": "string",
"updatedAt": "string",
"userId": 0
},
"msg": "string"
}
修改于 2025-04-24 01:13:03