MingB-sq-api文档
**返回结果统一说明:**成功code=200,失败code=400
### 一、账号登录
**接口地址:http://101.201.56.114:2224**[/index/Login/login](http://47.93.3.223/dymaster/public/index.php/index/Login/login)
**请求方式:**POST
**Content-Type:** application/x-www-form-urlencoded
**请求参数:**
字段名字段说明类型是否必填备注username账号string必填password密码string必填
**返回结果:**
~~~
{
"code": 200,
"msg": "登录成功",
"data": {
"username": "zhangsan",
"nickname": "zhangsan",
"avatar": "",
"member_id": 6,
"balance": "1072.120999999998",
"member_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2MjcwNDYyMDgsIm5iZiI6MTYyNzA0NjIwOCwiZXhwIjoxNjI5NjM4MjA4LCJkYXRhIjp7Im1lbWJlcl9pZCI6NiwibG9naW5fdGltZSI6IjIwMjEtMDctMjMgMjE6MTY6NDciLCJsb2dpbl9pcCI6IjIxOS4xNDIuMTg0LjEzNCJ9fQ.G_4Vgwz6rUioXSCoBLAHAQ49nwd3LIlmdv9Q0ckjPL0"
}
}
~~~
### 二、下单接口
**接口地址:http://101.201.56.114:2224/****api****/Order/DyAdd**
**请求方式:**POST
**Content-Type:** application/x-www-form-urlencoded
**请求参数:**
字段名字段说明类型是否必填备注token登录成功返回的member_tokenstring是type类型,1为点赞,2为关注,3小红薯点赞,4小红薯收藏int是num下单数量int是最少为10个url作品短链接(https://v.douyin.com/eWQnkeX/)string是作品短连接
**返回结果:**
~~~
{
"code": 200,
"msg": "操作成功",
"data": {
"num": 10,
"url": "https://v.douyin.com/eWCDxYr/",
"speed": "",
"uid": 6,
"type": "1",
"price": "0.004",
"all_price": 0.04,
"cash_type": 1,
"order_type": 1,
"send_num": 10,
"create_time": "2021-07-23 21:58:37",
"order_id": "155"
}
}
~~~
### 三、订单列表
**接口地址:http://101.201.56.114:2224/****api****/Order/DyList**
**请求方式:**POST
**Content-Type:** application/x-www-form-urlencoded
**请求参数:**
字段名字段说明类型是否必填备注token登录成功返回的member_tokenstring是page页数,默认为1int否type默认为空表示全部,1表示dy赞,2表示dy关注,3xhs赞,4xhs收藏id订单idint否查询指定订单
**返回结果:**
~~~
{
"code": 200,
"msg": "操作成功",
"data": {
"count": 30,
"pages": 3,
"page": 1,
"limit": 10,
"list": [
{
"id": 155,
"url": "https://v.douyin.com/eWCDxYr/",
"type": "点赞",
"order_type": "抖音",
"cash_type": 1,
"price": "0.004",
"num": 10, # 期待数量
"speed": "",
"all_price": "0.04",
"status": "进行中",
"end_num": null, # 结束值
"create_time": "2021-07-23 21:58:37", # 下单时间
"starttime": null,
"endtime": null, #结束时间
"original_num": 795608, # 初始值
"have_submit": null, # 进度
"refund": "0",
"remark": null,
"current_num": 795888 , # 当前值
"refund_num": 123 , # 退款数量
},
{
"id": 154,
"url": "https://v.douyin.com/eWQnkeX/",
"type": "点赞",
"order_type": "抖音",
"cash_type": 1,
"price": "0.004",
"num": 10,
"speed": "",
"all_price": "0.04",
"status": "进行中",
"end_num": null,
"create_time": "2021-07-23 21:41:31",
"starttime": null,
"endtime": null,
"original_num": 718,
"have_submit": null,
"refund": "0",
"remark": null
},
],
"setting": {
"setting_id": 1,
"type": 1,
"money": "21",
"num_up1": 20000,
"num_down1": 10,
"num_up2": 20000,
"num_down2": 10,
"num_up3": 0,
"num_down3": 10,
"typemoney3": "0.05",
"typemoney2": "0.02",
"typemoney1": "0.01",
"money1": "0.004",
"money2": "0.045",
"money3": "0.18",
"verify_register": 11,
"verify_login": 11,
"token_exp": 720,
"create_time": "2021-05-24 16:28:35",
"update_time": "2021-07-20 12:38:36"
}
}
}
~~~
### 四、终止订单
**接口地址:http://101.201.56.114:2224/****api****/Order/endOrder**
**请求方式:**POST
**Content-Type:** application/x-www-form-urlencoded
**请求参数:**
字段名字段说明类型是否必填备注token登录成功返回的member_tokenstring是id订单idint是
~~~
{
"code": 200,
"msg": "操作成功",
"data": []
}
~~~