• 积分任务页面接口

请求域名:

  • http://xx.com

请求URL:

GET/route=plugin.point-task.api.task.index

参数:

参数名 是否必须 类型 说明
page int 分页数

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "list": [
            {
                "id": 4,
                "icon": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/49d90b798c600429eda3cea92addd190.jpeg",
                "name": "测试app广告",
                "sub_title": "测试app广告",
                "amount": 40,
                "status": 1,
                "type": 4,
                "poster_id": 0,
                "button_name": "领取",
                "mini_url": "www.baidu.com",
                "url": "www.baidu.com"
            }
        ],
        "total_page": 5,
        "current_page": 1,
        "page_size": 10,
        "income": 0
    }
}

错误时返回:

{
	result: 0,
	msg: "错误信息",
	data: {}
}

返回参数说明:

参数名 类型 说明
total_page int 总页数
current_page int 当前页数
page_size int 分页大小
income float 今日获得的积分总数

返回参数data.list说明:

参数名 类型 说明
id int 任务ID
name string 任务名称
sub_title string 副标题
amount int 积分数
status int 任务是否可用 1 可用 0 不可用(该字段用于type为3的情况)
icon string 任务图标
type int 任务类型 1 自定义连接 2 海报分享 3绑定手机号 4app广告
poster_id int 海报id
button_name string 自定义按钮名称
url string h5链接
mini_url string 小程序链接

备注:

  • 更多返回错误代码请看首页的错误代码描述