文档
测试

任务发布

POST
http://123.99.199.224:9991/api/add?token=token秘钥input=下单参数1input2=下单参数2&need_num=下单数量&shop_id=任务类型ID

接口描述

使用前必须在本系统加IP白名单,token每个接口必携带

请求头

参数名
类型
描述
必填
x-requested-with
string
示例:XMLHttpRequest
必填

请求参数

参数名
类型
描述
必填
token
string
用户token:5QxbIvD6xbHsCL3pSJtb9fAETSrY002x
必填
input
string
下单参数1:https://dwz.cn/zBD9KLSf
必填
input2
string
下单参数2(非必填):
可选
need_num
int
下单数量:10
必填
shop_id
int
任务类型ID:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
data
object
数据字典
必填
order_id
string
示例:20220421000031676165
必填
price
float
示例:0.35000000000000003
必填
before_money
float
示例:18.415
必填
after_money
float
示例:18.064999999999998
必填
msg
string
示例:下单成功
必填
code
int
示例:200
必填
data
object
数据字典
必填
order_id
string
任务订单号:20220421000031676165
必填
price
float
消费金额:0.35000000000000003
必填
before_money
float
下单前余额:18.415
必填
after_money
float
下单后余额:18.064999999999998
必填
msg
string
示例:下单成功
必填

下单成功

{ "code": 200, "data": { "order_id": "20220421000031676165", "price": 0.35000000000000003, "before_money": 18.415, "after_money": 18.064999999999998 }, "msg": "下单成功" }

验证失败

{ "code": 403, "msg": "验证失败" }

余额不足

{ "code": 405, "msg": "账户余额不足" }

商品不存在

{ "code": 404, "msg": "商品不存在" }

token未携带

{ "code": 500, "message": { "token": [ "The token field is required." ] } }