rabin 72e5851b39 edit | 8 months ago | |
---|---|---|
database | 8 months ago | |
lib | 8 months ago | |
src | 8 months ago | |
README.md | 8 months ago | |
index.php | 8 months ago |
使用方法:
钱包:
# 用户id
$uid = 1;
# 金额
$cash = 10;
# 交易类型key
$type = 'chongzhi';
# 钱包key
$account = 'qianbao';
# 描述
$desc = '';
# 来源表
$source = 'order/sell';
# 来源表id
$source_id = 1;
# 自动还是手动 1是自动 2是手动,一般为1
$state = 1;
Dever::load('account/lib/info.up_commit', $uid, $cash, $type, $account, $desc, $source, $source_id, 1);
收益:
# 用户id
$uid = 1;
# 每次结算金额
$cash = 10;
# 收益key
$profit = 'zhitui';
# 标题
$name = '';
# 描述
$desc = '';
# 来源表
$source = 'order/sell';
# 来源表id
$source_id = 1;
# 状态
$status = 1;//1是入账待结算,2是已结算,3是部分结算,4是结算失败
Dever::load('account/lib/profit.up_commit', $uid, $cash, $profit, $status, $source, $source_id, $name, $desc);