From 5e0d9dab8f2c00afdc5ed744b88b858d89901f26 Mon Sep 17 00:00:00 2001 From: lyt Date: Tue, 18 Jun 2019 09:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E6=8E=A5=E8=AE=A1=E5=88=92:=E5=95=86?= =?UTF-8?q?=E5=8A=A1=E8=AE=A2=E5=8D=95=E8=AE=A1=E5=88=92=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=8F=91=E9=80=81=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/vendorPlanSync/libraries/Tulanduo.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php index ec31d702..accca6fe 100644 --- a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php +++ b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php @@ -563,9 +563,14 @@ class Tulanduo // echo json_encode($grd_apart_info);exit; $request_info = $this->ci->Group_model->get_plan_request($vas->GRI_SN); $big_order_index = 0; + $expect_order_cnt = count($grd_apart_info['com'])+intval(!empty($grd_apart_info['big_pvt']))+intval(!empty($grd_apart_info['pvt'])); foreach ($grd_apart_info as $group_key => $grd_part) { $big_order_index = $this->tour_apart_order_exec($group_key, $vas, $request_info, null, $grd_part, $big_order_index); } + if ($big_order_index === $expect_order_cnt) { + /** VendorArrangeState VAS_IsReceive */ + $this->ci->Group_model->set_plan_received($vas->VAS_SN); + } } /*!