正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -760,8 +760,8 @@ class OrderController extends HomeBaseController{ | @@ -760,8 +760,8 @@ class OrderController extends HomeBaseController{ | ||
760 | if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') { | 760 | if ($Sign===$mySign && $data['return_code'] == 'SUCCESS') { |
761 | try{ | 761 | try{ |
762 | Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]); | 762 | Db::name('order')->where(['order_no'=>$order_no])->update(['state'=>3]); |
763 | - Db::name('fee_log')->insert(['user_id'=>$order['users_id'],'type'=>2,'fee'=>($order['money']-$order['group_money'])]); | ||
764 | - Db::name('users')->where('id',$order['users_id'])->setDec('fee',($order['money']-$order['group_money'])); | 763 | + Db::name('fee_log')->insert(['user_id'=>$order['users_id'],'type'=>2,'fee'=>($order['price']-$order['group_money'])]); |
764 | + Db::name('users')->where('id',$order['users_id'])->setDec('fee',($order['price']-$order['group_money'])); | ||
765 | }catch (\Exception $exception){ | 765 | }catch (\Exception $exception){ |
766 | $this->apiResponse(301,'error:'.$exception->getMessage()); | 766 | $this->apiResponse(301,'error:'.$exception->getMessage()); |
767 | } | 767 | } |
-
请 注册 或 登录 后发表评论