简要描述:

  • 设备详情

请求URL:

GET/plugin.advert-market.frontend.center.getEquipmentDetail

参数:

参数名 是否必须 类型 说明
sn str 设备编号

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "成功",
	"data": {
		"equipment": {
			"id": 1,
			"uniacid": 10,
			"store_id": 37,
			"sn": "SN666",
			"time_total": "12.00",
			"show_total": 20,
			"amount_total": "3.20",
			"sellte_total": "3.20",
			"created_at": "2019-12-16 23:32:59",
			"updated_at": "2019-12-16 23:32:59",
			"deleted_at": null
		},
		"logs": {
			"total": 3,
			"per_page": 15,
			"current_page": 1,
			"last_page": 1,
			"next_page_url": null,
			"prev_page_url": null,
			"from": 1,
			"to": 3,
			"data": [{
				"id": 1,
				"uniacid": 10,
				"advert_id": 1,
				"store_id": 37,
				"am_id": 1,
				"sn": "SN666",
				"advert_code": 1,
				"view_count": 12,
				"unit_code": 1,
				"advert_unit": "0.10",
				"advert_amount": "1.20",
				"advert_budget": "998.80",
				"ratio": "100.00",
				"amount": "1.20",
				"created_at": "2019-12-16 23:38:50",
				"updated_at": "2019-12-16 23:38:50",
				"deleted_at": null,
				"code_name": "待机广告",
				"unit_code_name": "min"
			}, {
				"id": 2,
				"uniacid": 10,
				"advert_id": 1,
				"store_id": 37,
				"am_id": 1,
				"sn": "SN666",
				"advert_code": 2,
				"view_count": 10,
				"unit_code": 2,
				"advert_unit": "0.10",
				"advert_amount": "1.00",
				"advert_budget": "997.80",
				"ratio": "100.00",
				"amount": "1.00",
				"created_at": "2019-12-16 23:38:50",
				"updated_at": "2019-12-16 23:38:50",
				"deleted_at": null,
				"code_name": "支付广告",
				"unit_code_name": "次"
			}, {
				"id": 3,
				"uniacid": 10,
				"advert_id": 2,
				"store_id": 37,
				"am_id": 2,
				"sn": "SN666",
				"advert_code": 2,
				"view_count": 10,
				"unit_code": 2,
				"advert_unit": "0.10",
				"advert_amount": "1.00",
				"advert_budget": "887.00",
				"ratio": "100.00",
				"amount": "1.00",
				"created_at": "2019-12-16 23:38:50",
				"updated_at": "2019-12-16 23:38:50",
				"deleted_at": null,
				"code_name": "支付广告",
				"unit_code_name": "次"
			}]
		}
	}
}

返回参数说明:

参数名 类型 说明
equipments->sn str 设备编号
equipments->time_total int 累计时长
equipments->show_total int 展示次数
equipments->amount_total float 累计广告收入
equipments->sellte_total float 累计结算收入,店长提成
logs->data->id int 记录id
logs->data->amount float 提成金额
logs->data->code_name str 广告类型
logs->data->view_count int 展示数量
logs->data->unit_code_name int min 或者 次
logs->data->created_at str 时间