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;