作者 anyv
1 个管道 的构建 通过 耗费 0 秒

54

... ... @@ -218,10 +218,6 @@ 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('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);
//添加业务员的收入记录
... ... @@ -255,6 +251,10 @@ class PayController extends HomeBaseController
$balance_salesman = $order['money'] - $order['money']*$money_ratio['platform_ratio'] - $money;
//增加业务员的余额
Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman);
cache('aa',$balance_salesman);
cache('bb',$order['money']);
cache('cc',$money_ratio['platform_ratio']);
cache('dd',$money);
//添加业务员的收入记录
$money_income_salesman_indent['create_time'] = time();
$money_income_salesman_indent['uid'] = $order['salesman_uid'];
... ...