From 0fac734e33c1930c950d8063c3d88ef1a4113fd2 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Thu, 12 May 2022 11:32:18 +0800 Subject: [PATCH] edit-admin-finish_order --- admin/controllers/receiver/orderv2/Orders.php | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/controllers/receiver/orderv2/Orders.php b/admin/controllers/receiver/orderv2/Orders.php index 9f5de730..ee306b26 100644 --- a/admin/controllers/receiver/orderv2/Orders.php +++ b/admin/controllers/receiver/orderv2/Orders.php @@ -781,6 +781,7 @@ class Orders extends HD_Controller $last_p_row && $where['id <>'] = $last_p_row['id']; $is_pay = $this->app_liche_orders_model->sum('total_price',$where); //已支付金额 if($need_price && $is_pay['total_price']>=$need_price){ //完成支付 + $this->app_liche_orders_model->update(['status'=>1],['o_id'=>$row['id'],'pid'=>0]);//主订单设置成支付 $last_p_row && $this->app_liche_orders_model->update(['status'=>1],['id'=>$last_p_row['id']]);//完成未支付尾款 $this->orders_status_entity->set_status($row['id'],0,2); }