交易流水
本文整理智简魔方财务系统中“交易流水”相关的配置、操作或问题处理内容,供管理员和运维人员按原文步骤查阅与执行。
- 后台手动添加交易流水后执行
- 后台手动编辑交易流水后执行
- 后台手动删除交易流水后执行
后台手动添加交易流水后执行
after_admin_add_account
后台手动添加交易流水之后执行
请求参数:
| 参数名称 | 类型 | 说明 |
|---|---|---|
| account_id | 整型 | 交易流水 ID |
| amount_in | 浮点型 | 收入 |
| amount_out | 浮点型 | 支出 |
| currency | 字符串 | 货币代码 |
| description | 字符串 | 描述 |
| trans_id | 字符串 | 付款流水号 |
| invoice_id | 整型 | 账单 ID |
| gateway | 字符串 | 付款方式 |
| refund | 整型 | 是否退款到余额 |
| uid | 整型 | 用户ID |
响应:
无
示范代码:
<?php
add_hook('after_admin_add_account', 1, function($vars) {
// Perform hook code here...
});后台手动编辑交易流水后执行
after_admin_edit_account
后台手动编辑交易流水之后执行
请求参数:
| 参数名称 | 类型 | 说明 |
|---|---|---|
| account_id | 整型 | 交易流水 ID |
| amount_in | 浮点型 | 收入 |
| amount_out | 浮点型 | 支出 |
| invoice_id | 整型 | 账单 ID |
| gateway | 字符串 | 付款方式 |
响应:
无
示范代码:
<?php
add_hook('after_admin_edit_account', 1, function($vars) {
// Perform hook code here...
});后台手动删除交易流水后执行
after_admin_delete_account
后台手动删除交易流水之后执行
请求参数:
| 参数名称 | 类型 | 说明 |
|---|---|---|
| account_id | 整型 | 交易流水 ID |
响应:
无
示范代码:
<?php
add_hook('after_admin_delete_account', 1, function($vars) {
// Perform hook code here...
});