文档
测试

获取任务列表

GET
https://udd.uxiao.vip/task/index

请求头

参数名
类型
描述
必填
token
string
示例:ce5cd3cdb887f20b576019ed9e4f41caa10447dd2ecbcb67a41b56e0b0693903
必填

响应参数

参数名
类型
描述
必填
code
int
状态码
可选
message
string
请求提示
可选
data
object
返回数
可选
user_tasks
object[]
任务列表
可选
id
int
任务id
可选
title
string
任务标题
可选
desc
string
任务描述
可选
image
string
任务图标
可选
reward
number
任务奖励
可选
new_user_task
int
0:非 1:是
可选
can_do
int
是否可以做 0:不可以 1:可以
可选
sign_in
object
签到数据
可选
total_sign_in
int
总签到次数
可选
continue_days
int
连续签到次数
可选
balance
string
金币数量
可选

说明 / 示例

```json { "code": 1, "msg": "success", "data": { "user_tasks": [ { "id": 1, "title": "邀请好友", "desc": "每成功邀请一个好友注册,获得2金币", "image": "任务图标1", "reward": 2, "new_user_task": 0, "can_do": true }, { "id": 2, "title": "分享App", "desc": "每成功分享一次App,获得0.1金币", "image": "任务图标2", "reward": 0.1, "new_user_task": 0, "can_do": true }, { "id": 3, "title": "评论校圈或短视频", "desc": "评论2次校圈或短视频,获得0.1金币", "image": "任务图标3", "reward": 0.1, "new_user_task": 0, "can_do": true }, { "id": 4, "title": "点赞校圈或短视频", "desc": "点赞2次校圈或短视频,获得0.1金币", "image": "任务图标4", "reward": 0.1, "new_user_task": 0, "can_do": true }, { "id": 5, "title": "绑定微信", "desc": "绑定微信,获得0.1金币", "image": "任务图标5", "reward": 0.1, "new_user_task": 1, "can_do": true }, { "id": 6, "title": "首次签到", "desc": "首次签到,获得0.1金币", "image": "任务图标6", "reward": 0.1, "new_user_task": 1, "can_do": false }, { "id": 7, "title": "首次登录", "desc": "首次登录,获得0.1金币", "image": "任务图标7", "reward": 0.1, "new_user_task": 1, "can_do": false }, { "id": 8, "title": "发布短视频", "desc": "发布一个短视频,获得0.1金币", "image": "任务图标8", "reward": 0.1, "new_user_task": 1, "can_do": true }, { "id": 9, "title": "发布校圈", "desc": "发布一个校圈,获得0.1金币", "image": "任务图标9", "reward": 0.1, "new_user_task": 1, "can_do": true }, { "id": 10, "title": "浏览校圈或短视频", "desc": "浏览2条校圈或短视频,获得0.1金币", "image": "任务图标10", "reward": 0.1, "new_user_task": 0, "can_do": true } ], "sign_in": { "total_sign_in": 3, "continue_days": 3 }, "balance": "2.50" } } ```