账户组件

rabin 72e5851b39 edit 7 mesiacov pred
database 72e5851b39 edit 7 mesiacov pred
lib 72e5851b39 edit 7 mesiacov pred
src 72e5851b39 edit 7 mesiacov pred
README.md 72e5851b39 edit 7 mesiacov pred
index.php 72e5851b39 edit 7 mesiacov pred

README.md

账户钱包组件

使用方法:

钱包:

# 用户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);