...
|
...
|
@@ -218,10 +218,10 @@ class PayController extends HomeBaseController |
|
|
Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money);
|
|
|
//计算业务员这条订单的收入
|
|
|
$balance_salesman = $order['money'] - $order['money']*$money_ratio['platform_ratio'] - $money;
|
|
|
cache('a',$balance_salesman);
|
|
|
cache('b',$order['money']);
|
|
|
cache('c',$money_ratio['platform_ratio']);
|
|
|
cache('d',$money);
|
|
|
cache('aa',$balance_salesman);
|
|
|
cache('bb',$order['money']);
|
|
|
cache('cc',$money_ratio['platform_ratio']);
|
|
|
cache('dd',$money);
|
|
|
//增加业务员的余额
|
|
|
Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman);
|
|
|
//添加业务员的收入记录
|
...
|
...
|
|