简要描述:

-贡献值记录

请求域名:

  • http://xx.com

请求URL:

plugin.task-package.frontend.record.contribution-value

请求参数说明:

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

返回示例:

正确时返回:

{
	result: 1,
	msg: "ok",
	data: {
		"list":[
			"current_page": 1,
			"data": [
				{
					"id": 2,
					"member_id": 1,
					"bag_id": 1,
					"type": 2,
					"bag":null
					"source": "10",
					"source_name": 3,
					"change_value": 0.20,
					"created_at": "2022-04-26 16:14:22",
				},
				{
					"id": 2,
					"member_id": 1,
					"bag_id": 1,
					"type":1,
					"source": "10",
					"bag":{
						id:1,
						name:"任务包"
					}
					"source_name": 3,
					"change_value": 0.20,
					"created_at": "2022-04-26 16:14:22",
				},
			],
			"first_page_url": "https://dev8.yunzmall.com/business/1/plugin/project-manager/project/index?page=1",
			"from": 1,
			"last_page": 1,
			"last_page_url": "https://dev8.yunzmall.com/business/1/plugin/project-manager/project/index?page=1",
			"next_page_url": null,
			"path": "https://dev8.yunzmall.com/business/1/plugin/project-manager/project/index",
			"per_page": 20,
			"prev_page_url": null,
			"to": 2,
			"total": 2
		],
		"total":200
	}
}

错误时返回:(#如返回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": []
}

返回参数说明:

参数名 类型 说明
list array 记录列表
total float 累计贡献值

list返回参数说明:(有分页)

参数名 类型 说明
id int 记录ID
member_id int 会员ID
type int 类型:1收入2失去
bag obj 任务包信息
source_name string 变动来源名称
change_value int 变动数量
created_at string 时间

bag返回参数说明:

参数名 类型 说明
id int 任务包ID
name string 任务包名称