简要描述:

-任务商城

请求域名:

  • http://xx.com

请求URL:

plugin.task-package.frontend.bag.get-list

请求参数说明:

参数名 类型 是否必需 说明
page int 第x页

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取列表成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 2,
                "name": "测试人物包",
                "pic": "http://119.91.205.224/static/upload/images/15/2022/09/510520746843faf1408faa2e34a33888.png",
                "verify_gift": 0,
                "love_amount": "2.00",
                "active_days": 4,
                "total_amount": "5.00",
                "limit": 6,
                "task_reach_share": 88,
                "task_reach_article": 99,
                "task_reach_video": 77,
                "recovery_amount": 10,
                "status": 2,
                "created_at": "2022-12-13 10:52:23",
                "uniacid": 15,
                "updated_at": "2022-12-20 10:26:21",
                "deleted_at": null,
                "record_count": 0,
                "return_rate": "150%",
                "daily_amount": 1.25
            }
        ],
        "first_page_url": "http://119.91.205.224///addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://119.91.205.224///addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://119.91.205.224///addons/yun_shop/api.php",
        "per_page": 10,
        "prev_page_url": null,
        "to": 1,
        "total": 1,
        "usable_name": "服务完全"
    }
}

错误时返回:(#如返回result=0,并且data中带task_package_invite_code=1,跳转到填写邀请码页面;data中带task_package_real_name_auth=1,跳转到填写实名认证页面)

{
    "result": 0,
    "msg": "请先填写邀请码",
    "data": {
		"task_package_invite_code":1
	}
}
{
    "result": 0,
    "msg": "请先实名认证",
    "data": {
		"task_package_real_name_auth":1
	}
}
{
    "result": 0,
    "msg": "请登录",
    "data": []
}

返回参数说明:

参数名 类型 说明
id int 任务包id
name int 任务包名称
pic int 任务包图片
love_amount float 任务包价格
limit int 最多可持有的运行中数量
active_days int 有效期
total_amount int 总释放
return_rate string 收益率
daily_amount string 日释放
record_count int 运行中