作者 潘浩文
1 个管道 的构建 通过 耗费 1 秒

XIAOPAN

@@ -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 }