From ad8c957db9500dae5e3481af286c161fc01073da Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 17 Jun 2019 15:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E5=88=92=E5=8F=91=E9=80=81:fixed?= =?UTF-8?q?=E7=81=AB=E8=BD=A6=E7=A5=A8=E8=AE=A2=E5=8D=95=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E7=A6=BB=E5=9B=A2=E6=97=A5=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/vendorPlanSync/libraries/Tulanduo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php index e3176bfb..d02759bf 100644 --- a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php +++ b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php @@ -411,6 +411,7 @@ class Tulanduo $agcOrderNo = $vas->GRI_Name; $last_date = count($train_order)-1; $end_date = strstr($train_order[$last_date]->COLD_EndDate, " ", true); + $end_date = $end_date ? $end_date : strstr($train_order[0]->COLD_StartDate, " ", true); $this->ci->tldOrderBuilder->setUserId($userId) ->setKey($userKey) ->setOrderType($order_type) @@ -457,6 +458,7 @@ class Tulanduo $s_index++; } $this->ci->tldOrderBuilder->clearModifyLogInfo(); + // echo $this->ci->tldOrderBuilder->getBizContent();exit; $resp = $this->excute_curl($this->neworder_url, $this->ci->tldOrderBuilder); $response = json_decode($resp); $sync_orderstate = 10;