简要描述:

请求域名:

  • http://xx.com

请求URL:

POST/plugin.instation-message.admin.message.get-agent-level

传递的参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"defaultLevelName": "默认等级",
		"agentLevels": [
			{
				"id": 1,
				"uniacid": 1,
				"name": "等级三",
				"level": 3,
				"first_level": "10.00",
				"second_level": "5.00",
				"third_level": "0.00",
				"upgraded": "a:1:{s:14:\"self_buy_count\";s:1:\"5\";}",
				"created_at": "2019-04-16 16:17:55",
				"updated_at": "2019-12-17 16:31:35",
				"deleted_at": null,
				"is_manage": null,
				"additional_ratio": "0.00"
			},
			{
				"id": 2,
				"uniacid": 1,
				"name": "等级一",
				"level": 1,
				"first_level": "5.00",
				"second_level": "2.00",
				"third_level": "0.00",
				"upgraded": "a:2:{s:5:\"goods\";s:1:\"8\";s:16:\"self_order_after\";s:1:\"1\";}",
				"created_at": "2019-04-19 13:58:04",
				"updated_at": "2019-12-16 09:24:09",
				"deleted_at": null,
				"is_manage": null,
				"additional_ratio": "0.00"
			},
		]
	}
}

错误时返回:

{
	"result": 0,
	"msg": "未开启推客插件",
	"data": []
}

返回参数说明:

参数名 类型 说明
defaultLevelName string 商城设置的默认等级名,等级id为0
agentLevels.id int 等级id
agentLevels.name int 等级名称

备注:

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