简要描述:

  • pc端/app端 会员余额明细记录接口

请求action:

POST/finance.balance.record

参数:

参数名 是否必须 类型 说明
search.record_type int 0全部,1收入,2支出
search.date string 日期 (2022-01-01)
search.service_type int 业务类型

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "money_arr": {
            "2020-10": {
                "income": 1000076784.01,
                "expend": 22733.91
            }
        },
        "record_list": {
            "current_page": 1,
            "data": {
                "2020-10": [
                    {
                        "id": 1011,
                        "created_at": "2020-10-14 17:24:47",
                        "type": 2,
                        "change_money": "-200.00",
                        "new_money": "974413.60",
                        "service_type": 2,
                        "service_type_name": "余额消费",
                        "type_name": "支出",
                        "transfer_member_id": "",
                        "transfer_member_name": "",
                        "group_date": "2020-10",
						"withdraw":{
						  "withdraw_sn": "WS20221110113511372403",
						  "reject_reason": "wtheq",
						  "status_name": "",
						  "pay_way_name": ""
						}
                    },
                    {
                        "id": 1010,
                        "created_at": "2020-10-14 17:21:02",
                        "type": 2,
                        "change_money": "-480.00",
                        "new_money": "974613.60",
                        "service_type": 2,
                        "service_type_name": "余额消费",
                        "type_name": "支出",
                        "transfer_member_id": "",
                        "transfer_member_name": "",
                        "group_date": "2020-10"
                    }
                ]
            },
            "first_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=1",
            "from": 1,
            "last_page": 67,
            "last_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=67",
            "next_page_url": "http://yzhonshop.com/addons/yun_shop/api.php?page=2",
            "path": "http://yzhonshop.com/addons/yun_shop/api.php",
            "per_page": 15,
            "prev_page_url": null,
            "to": 15,
            "total": 992
        }
    }
}

record_list.data返回参数:

参数名 类型 说明
id int 主键
created_at string 创建日期
change_money float 变化的金额
new_money float 最新的余额
service_type_name string 业务类型名称
type int 1收入,2支出
service_type int 业务类型

money_arr.日期 返回参数:

参数名 类型 说明
id int 主键
income float 收入
expend float 支出

withdraw 返回参数:

参数名 类型 说明
reject_reason string 拒绝原因

备注: