From 84ee424dd31dfb1961f67b561fb31741ddc7c3ef Mon Sep 17 00:00:00 2001 From: lyt Date: Mon, 17 Jun 2019 12:39:41 +0800 Subject: [PATCH] =?UTF-8?q?fixed=E6=97=A0=E8=A1=8C=E7=A8=8B=E7=9A=84?= =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=AF=BC=E8=87=B4=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/vendorPlanSync/libraries/Tulanduo.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php index fe2d8703..e3176bfb 100644 --- a/webht/third_party/vendorPlanSync/libraries/Tulanduo.php +++ b/webht/third_party/vendorPlanSync/libraries/Tulanduo.php @@ -309,6 +309,10 @@ class Tulanduo { $apart = array(); $ret = array(); foreach ($all_pag_info as $key => $pag) { + if ( ! isset($pag->PAG_DEI_SN)) { + // 通宵火车或其他, 不含该社行程 + continue; + } // CH下的产品编号修正 if (intval($pag->PAG_DEI_SN)===1 && ! empty($pag->PAG_Code)) { $pag->PAG_Code = $this->ci->trippest->ch_code_transfer( mb_strtoupper($pag->PAG_Code));