From 6025788eb3277c151a3358d654a849be50c63129 Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Wed, 17 Nov 2021 17:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/service/OrderMainService.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/application/admin/service/OrderMainService.php b/application/admin/service/OrderMainService.php index 0d5bafa..f4d03c0 100644 --- a/application/admin/service/OrderMainService.php +++ b/application/admin/service/OrderMainService.php @@ -35,6 +35,9 @@ class OrderMainService if (!$addOrderMain["flag"]) { return $addOrderMain; } + if (!isset($param['subOrderList']) || count($param['subOrderList'])==0) { + return Util::returnArrSu("成功",$addOrderMain['data']); + } $orderId = $addOrderMain['data']; //所有子订单设置为删除 $orderHotelDao = new OrderHotelDao(); @@ -109,7 +112,7 @@ class OrderMainService if (!$setOrderMainRe['flag']) { return $setOrderMainRe; } - return Util::returnArrSu("",$orderId); + return Util::returnArrSu("成功",$orderId); } /** @@ -213,7 +216,7 @@ class OrderMainService //重新计算订单总金额 $orderMainDao = new OrderMainDao(); $orderMainDao->setOrderAmount($subOrderRe['data']['order_id']); - return Util::returnArrSu(); + return Util::returnArrSu("成功"); }catch (Exception $e){ return Util::returnArrEr("删除子订单失败:".$e->getMessage()); } @@ -265,6 +268,6 @@ class OrderMainService return $subOrderList; } $orderMain["subOrderList"]=$subOrderList['data']; - return Util::returnArrSu("",$orderMain); + return Util::returnArrSu("成功",$orderMain); } } \ No newline at end of file