简要描述:

  • 新人奖首页接口

请求域名:

  • http://xx.com

请求URL:

POST:home-page.index

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

"plugin": {
			"new-member-prize": {
  "activity" => array:15 [
    "id" => 9
    "uniacid" => 3
    "name" => "11111"
    "activity_time" => null
    "activity_type" => array:3 [
      0 => "2"
      1 => "1"
      2 => "0"
    ]
    "receive_type" => 1
    "receive_content" => array:3 [
      "goods_id" => []
      "pay" => "0"
      "num" => ""
    ]
    "prize_id" => array:4 [
      0 => 13
      1 => 14
      2 => 16
      3 => 17
    ]
    "background_type" => 0
    "title" => "asd"
    "receive_num" => "1"
    "created_at" => "2020-07-29 16:55:49"
    "updated_at" => "2020-08-05 09:49:44"
    "start_time" => "1596470400"
    "end_time" => "1596729600"
  ]
  "prize" => array:4 [
    0 => array:14 [
      "id" => 13
      "uniacid" => 3
      "name" => "111"
      "prize_type" => 3
      "coupon_id" => 0
      "point" => 0
      "love" => 1
      "amount" => 0
      "prize_num" => "1105"
      "created_at" => "2020-07-31 16:46:03"
      "updated_at" => "2020-08-05 09:49:44"
      "coupon_num" => 0
      "received_num" => 6
      "has_one_coupon" => null
    ]
    1 => array:14 [
      "id" => 14
      "uniacid" => 3
      "name" => "1111"
      "prize_type" => 4
      "coupon_id" => 0
      "point" => 0
      "love" => 0
      "amount" => 1
      "prize_num" => "1105"
      "created_at" => "2020-07-31 16:46:10"
      "updated_at" => "2020-08-05 09:49:44"
      "coupon_num" => 0
      "received_num" => 6
      "has_one_coupon" => null
    ]
    2 => array:14 [
      "id" => 16
      "uniacid" => 3
      "name" => "撒的"
      "prize_type" => 2
      "coupon_id" => 0
      "point" => 1
      "love" => 0
      "amount" => 0
      "prize_num" => "110"
      "created_at" => "2020-08-03 10:39:18"
      "updated_at" => "2020-08-05 09:49:44"
      "coupon_num" => 0
      "received_num" => 1
      "has_one_coupon" => null
    ]
    3 => array:14 [
      "id" => 17
      "uniacid" => 3
      "name" => "阿斯顿"
      "prize_type" => 1
      "coupon_id" => 2
      "point" => 0
      "love" => 0
      "amount" => 0
      "prize_num" => "110"
      "created_at" => "2020-08-03 10:40:07"
      "updated_at" => "2020-08-05 09:49:44"
      "coupon_num" => 1
      "received_num" => 1
      "has_one_coupon" => array:3 [
        "id" => 2
        "name" => "优惠券测试"
        "total" => 88
		"coupon_method" => 1,
		"deduct" => 10,
		"discount" => 5,
      ]
    ]
  ]
			}
		}

错误时返回:


返回参数说明:

参数名 类型 说明
new_member_prize string 新人奖奖品
activity[name] string 活动名称
activity[background_type] int 样式
activity[title] string 标题
prize[coupon_id] int 优惠券id
prize.has_one_coupon.name string 优惠券名称
prize.has_one_coupon.coupon_method int 优惠券优惠方式 1立减/2打折
prize.has_one_coupon.deduct int 立减X元
prize.has_one_coupon.discount int 打X折
prize.has_one_coupon.enough int 满X立减/打折
prize[prize_type] int 奖品类型 1优惠券/2积分/3爱心值/4余额
prize[point] int 积分
prize[love] int 余额
prize[amount] int 爱心值

备注:

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