简要描述:

  • 会员等级接口

请求域名:

  • http://xx.com

请求URL:

GET/获取会员等级列表:&route=member.member-level.upgrade-detail.index

参数:

参数名 是否必须 类型 说明
id int 等级id

返回示例:

正确时返回:


{
	"result":1,
	"msg":"leveldetail",
	"data":{
		"id":3,
		"level":1,
		"level_name":"\u9752\u94dc\u4f1a\u5458",
		"order_money":"1000",
		"order_count":"12",
		"discount":"4.1",
		"created_at":"2017-12-07 18:07:01",
		"updated_at":"2018-02-28 14:30:05",
		"deleted_at":null,
		"validity":10,
		"freight_reduction":"21",
		"interests_rules":"会员权益细则",
		"level_type":"2",
		 "rent_free": "1", 
        "deposit_free": "1",
		"goods":{
			"id":150,
			"title":"商品名称",
			"thumb":"图片",
			"price":"价格"
		}
	}
}


错误时返回:

{
    "result":0,
    "msg":"未进行等级设置",
    "data":[]
}

返回参数说明:

参数名 类型 说明
level_type string 升级条件类型,0:订单金额1:订单数量;2:指定商品
level_name string 等级名称
discount string 折扣
freight_reduction string 运费减免
rent_free int 租金免件数 为 null 时不显示
deposit_free int 押金免件数 为 null 是不显示
order_money string 订单金额(level_type为0时返回)
order_count string 订单数量(level_type为1时返回)
goods array 商品数据(level_type为2时返回)
validity int 有效期(当level_type为 2 才有用)

备注:

level_type 等于 2 时 返回的是goods 类型:数组;order_money与order_count不会返回

level_type 等于 0 时返回order_money 类型:字符串;goods与order_count不会返回

level_type 等于 1 时返回order_count 类型:字符串;goods与order_money不会返回

当goods、order_money或order_count为空,表示不自动升级

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