rabin 72e5851b39 edit | há 7 meses atrás | |
---|---|---|
database | há 7 meses atrás | |
lib | há 7 meses atrás | |
src | há 7 meses atrás | |
README.md | há 7 meses atrás | |
index.php | há 7 meses atrás |
使用方法:
钱包:
# 用户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);