简要描述:

  • 原型:门店余额明细 有分页

请求URL:

GET/plugin.store-cashier.frontend.store.balance.log.index
参数名 是否必须 类型 说明
store_id true int 门店id
log_type false int 1收入,-1支出,其他值为全部

返回示例:

错误时返回:

{
    "result": 0,
    "msg": "参数错误",
    "data": []
}
{
    "result": 0,
    "msg": "未开启门店余额插件",
    "data": []
}

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"list": {
			"current_page": 1,
			"data": [{
					"id": 2,
					"uniacid": 5,
					"uid": 698211,
					"store_id": 3,
					"sn": "SH20210816174207KB",
					"before_balance": "110.00",
					"after_balance": "105.00",
					"change_balance": "-5.00",
					"type": -1,
					"mold": 1,
					"operator": 1,
					"operator_id": 1,
					"remark": "后台充值门店余额",
					"created_at": "2021-08-16 17:42:07",
					"updated_at": "2021-08-16 17:42:07",
					"deleted_at": null,
					"mold_name": "门店余额充值"
				},
				{
					"id": 1,
					"uniacid": 5,
					"uid": 698211,
					"store_id": 3,
					"sn": "SH20210816174134Tb",
					"before_balance": "100.00",
					"after_balance": "110.00",
					"change_balance": "10.00",
					"type": 1,
					"mold": 1,
					"operator": 1,
					"operator_id": 1,
					"remark": "后台充值门店余额",
					"created_at": "2021-08-16 17:41:34",
					"updated_at": "2021-08-16 17:41:34",
					"deleted_at": null,
					"mold_name": "门店余额充值"
				}
			],
			"first_page_url": "http://mdzz.com/addons/yun_shop/api.php?page=1",
			"from": 1,
			"last_page": 1,
			"last_page_url": "http://mdzz.com/addons/yun_shop/api.php?page=1",
			"next_page_url": null,
			"path": "http://mdzz.com/addons/yun_shop/api.php",
			"per_page": 15,
			"prev_page_url": null,
			"to": 2,
			"total": 2
		}
	}
}

返回参数说明:

参数名 类型 说明
id int 记录id
mold_name str 业务类型名称
change_balance float 余额变动数量
after_balance float 变动后余额数量
created_at str 时间