用户钻石任务

请求URL:

  • /userTask

请求方式:

  • POST

参数:

参数名 必选 类型 说明
curDate int 用户当前日期(格式:20250919)
state int 是否开启0:否(默认)1:是11:其他类型

返回示例

{
  "code": 200,
  "msg": "SUCCESS",
  "data": [
    {
      "id": 5,
      "title": "Join Discord",
      "howOften": 1,
      "state": 11,
      "type": 5,
      "amount": 5,
      "energy": 5,
      "condition": 1,
      "updatedAt": 1780964984,
      "process": 0,
      "gotten": false
    },
    {
      "id": 6,
      "title": "Add To Desktop",
      "howOften": 1,
      "state": 11,
      "type": 6,
      "amount": 20,
      "energy": 20,
      "condition": 1,
      "updatedAt": 1780965177,
      "process": 0,
      "gotten": false
    },
    {
      "id": 7,
      "title": "Recharge 3 Times",
      "howOften": 1,
      "state": 11,
      "type": 7,
      "amount": 10,
      "energy": 10,
      "condition": 3,
      "updatedAt": 1780965459,
      "process": 1,
      "gotten": false
    },
    {
      "id": 8,
      "title": "Recharge 6 Times",
      "howOften": 1,
      "state": 11,
      "type": 7,
      "amount": 20,
      "energy": 20,
      "condition": 6,
      "updatedAt": 1780965494,
      "process": 1,
      "gotten": false
    },
    {
      "id": 9,
      "title": "Daily First Recharge",
      "howOften": 2,
      "state": 11,
      "type": 7,
      "amount": 10,
      "energy": 10,
      "condition": 1,
      "updatedAt": 1780965621,
      "process": 0,
      "gotten": false
    },
    {
      "id": 10,
      "title": "Recharge At Least $10",
      "howOften": 1,
      "state": 11,
      "type": 8,
      "amount": 100,
      "energy": 100,
      "condition": 1000,
      "updatedAt": 1780965759,
      "process": 399,
      "gotten": false
    },
    {
      "id": 11,
      "title": "Recharge At Least $20",
      "howOften": 1,
      "state": 11,
      "type": 8,
      "amount": 200,
      "energy": 200,
      "condition": 2000,
      "updatedAt": 1780965797,
      "process": 399,
      "gotten": false
    },
    {
      "id": 12,
      "title": "3 Minutes Online",
      "howOften": 2,
      "state": 11,
      "type": 9,
      "amount": 2,
      "energy": 2,
      "condition": 3,
      "updatedAt": 1780966021,
      "process": 0,
      "gotten": false
    },
    {
      "id": 13,
      "title": "10 Minutes Online",
      "howOften": 2,
      "state": 11,
      "type": 9,
      "amount": 3,
      "energy": 3,
      "condition": 10,
      "updatedAt": 1780966051,
      "process": 0,
      "gotten": false
    },
    {
      "id": 14,
      "title": "30 Minutes Online",
      "howOften": 2,
      "state": 11,
      "type": 9,
      "amount": 5,
      "energy": 5,
      "condition": 30,
      "updatedAt": 1780966092,
      "process": 0,
      "gotten": false
    },
    {
      "id": 15,
      "title": "Enable push notification permission",
      "howOften": 1,
      "state": 11,
      "type": 10,
      "amount": 10,
      "energy": 10,
      "condition": 1,
      "updatedAt": 1781030423,
      "process": 0,
      "gotten": false
    }
  ]
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data Array 提示信息
-id int 任务ID
-title string 标题
-howOften int 频次 1:终生一次 2:每日一次 3:每周一次 4:每月一次
-state int 是否开启0:否(默认)1:是11:其他类型
-type int 任务类型 1:关注角色 2:搜索角色 3:深度聊天 4:亲密度等级 5:加入Discord 6:添加到桌面 7:充值次数 8:充值金额 9:在线分钟 10:开启推送
-amount int 任务奖励钻石数
-energy int 任务奖励能量数(能量包使用)
-condition int 任务达成条件
-process int 任务进度
-gotten bool 是否已领取

任务类型说明

  • 红色任务需要前端判断是否达标, 达标后可直接访问领取奖励接口领取奖励

  • 1:关注角色

  • 2:搜索角色
  • 3:深度聊天
  • 4:亲密度等级
  • 5:加入Discord
  • 6:添加到桌面
  • 7:充值次数
  • 8:充值金额
  • 9:在线分钟
  • 10:开启推送
2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-06-23 11:41:53

results matching ""

    No results matching ""