正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -218,10 +218,6 @@ class PayController extends HomeBaseController | @@ -218,10 +218,6 @@ class PayController extends HomeBaseController | ||
218 | Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money); | 218 | Db::name('my_user') -> where('uid',$teacher['uid']) -> setInc('balance',$money); |
219 | //计算业务员这条订单的收入 | 219 | //计算业务员这条订单的收入 |
220 | $balance_salesman = $order['money'] - $order['money']*$money_ratio['platform_ratio'] - $money; | 220 | $balance_salesman = $order['money'] - $order['money']*$money_ratio['platform_ratio'] - $money; |
221 | - cache('aa',$balance_salesman); | ||
222 | - cache('bb',$order['money']); | ||
223 | - cache('cc',$money_ratio['platform_ratio']); | ||
224 | - cache('dd',$money); | ||
225 | //增加业务员的余额 | 221 | //增加业务员的余额 |
226 | Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman); | 222 | Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman); |
227 | //添加业务员的收入记录 | 223 | //添加业务员的收入记录 |
@@ -255,6 +251,10 @@ class PayController extends HomeBaseController | @@ -255,6 +251,10 @@ class PayController extends HomeBaseController | ||
255 | $balance_salesman = $order['money'] - $order['money']*$money_ratio['platform_ratio'] - $money; | 251 | $balance_salesman = $order['money'] - $order['money']*$money_ratio['platform_ratio'] - $money; |
256 | //增加业务员的余额 | 252 | //增加业务员的余额 |
257 | Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman); | 253 | Db::name('my_user') -> where('uid',$order['salesman_uid']) -> setInc('balance',$balance_salesman); |
254 | + cache('aa',$balance_salesman); | ||
255 | + cache('bb',$order['money']); | ||
256 | + cache('cc',$money_ratio['platform_ratio']); | ||
257 | + cache('dd',$money); | ||
258 | //添加业务员的收入记录 | 258 | //添加业务员的收入记录 |
259 | $money_income_salesman_indent['create_time'] = time(); | 259 | $money_income_salesman_indent['create_time'] = time(); |
260 | $money_income_salesman_indent['uid'] = $order['salesman_uid']; | 260 | $money_income_salesman_indent['uid'] = $order['salesman_uid']; |
-
请 注册 或 登录 后发表评论