简要描述:

  • 挑战记录

请求URL:

GET/plugin.redpack.frontend.activity.getChallengeLog

参数:

参数名 是否必须 类型 说明
aid int 活动id

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "成功",
  "data": {
    "count": 5,
    "success_count": 3,
    "amount_total": "21.00",
    "code_name": null,
    "member": {
      "uid": 158,
      "avatar": "http://thirdwx.qlogo.cn/mmopen/u0cuicqicF6puXaTqiaibKCpE9VpT909OfLULtyYcC5Rtr1QcCTBezds2hb36FAaBko1JA50yJibo7nicZAwtXLwpzARyuKyiae9pH7/132",
      "nickname": "卡卡",
      "avatar_image": "https://thirdwx.qlogo.cn/mmopen/u0cuicqicF6puXaTqiaibKCpE9VpT909OfLULtyYcC5Rtr1QcCTBezds2hb36FAaBko1JA50yJibo7nicZAwtXLwpzARyuKyiae9pH7/132",
      "username": "卡卡"
    },
    "log": {
      "total": 5,
      "per_page": 15,
      "current_page": 1,
      "last_page": 1,
      "next_page_url": null,
      "prev_page_url": null,
      "from": 1,
      "to": 5,
      "data": [
        {
          "id": 1,
          "uniacid": 10,
          "activity_id": 1,
          "parent_id": 0,
          "uid": 158,
          "amount": "2.00",
          "status": 1,
          "created_at": "2020-01-16 01:13:53",
          "updated_at": "2020-01-16 01:13:53",
          "deleted_at": null,
          "status_name": "成功"
        },
        {
          "id": 2,
          "uniacid": 10,
          "activity_id": 1,
          "parent_id": 0,
          "uid": 158,
          "amount": "5.00",
          "status": 1,
          "created_at": "2020-01-16 01:13:53",
          "updated_at": "2020-01-16 01:13:53",
          "deleted_at": null,
          "status_name": "成功"
        },
        {
          "id": 3,
          "uniacid": 10,
          "activity_id": 1,
          "parent_id": 0,
          "uid": 158,
          "amount": "13.00",
          "status": 0,
          "created_at": "2020-01-16 01:13:53",
          "updated_at": "2020-01-16 01:13:53",
          "deleted_at": null,
          "status_name": "失败"
        },
        {
          "id": 4,
          "uniacid": 10,
          "activity_id": 1,
          "parent_id": 0,
          "uid": 158,
          "amount": "14.00",
          "status": 1,
          "created_at": "2020-01-16 01:13:53",
          "updated_at": "2020-01-16 01:13:53",
          "deleted_at": null,
          "status_name": "成功"
        },
        {
          "id": 5,
          "uniacid": 10,
          "activity_id": 1,
          "parent_id": 0,
          "uid": 158,
          "amount": "24.00",
          "status": 0,
          "created_at": "2020-01-16 01:13:53",
          "updated_at": "2020-01-16 01:13:53",
          "deleted_at": null,
          "status_name": "失败"
        }
      ]
    }
  }
}

错误返回

{
	"result": 0,
	"msg": "参数错误",
	"data": []
}

返回参数说明:

参数名 类型 说明
count int 挑战次数
success_count int 挑战成次数
amount_total float 累计奖励
code_name str 奖励类型
member->nickname str 会员名称
member->avatar str 会员头像
log->created_at str 挑战时间
log->amount str 奖励金额
log->status_name str 状态