From f0cade4838b55fc6ee412d5fce1edceec0ffc150 Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 7 Sep 2018 16:40:01 +0800 Subject: [PATCH] =?UTF-8?q?trippest=E5=90=8C=E6=AD=A5:=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E7=94=A8arrya=5Fcolumn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trippestOrderSync/controllers/TulanduoApi.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php index d023979a..72b382f1 100644 --- a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php +++ b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php @@ -633,13 +633,12 @@ class TulanduoApi extends CI_Controller } $all_list = array_merge($all_list, $f_resp_arr["responseData"]["orders"]); } - $all_vendor_order_id = array_column($all_list, 'orderId'); + $all_vendor_order_id = array_map(function($ele){ return $ele['orderId'];}, $all_list); $all_vendor_order_id_str = implode(',', $all_vendor_order_id); $exists_ht = $this->sync_model->get_exists_vendorOrderId($all_vendor_order_id_str); $exists_ht_order_id = array_map(function($ele){ return intval($ele->GCI_VendorOrderId);}, $exists_ht); $to_insert = array_diff($all_vendor_order_id, $exists_ht_order_id); - // if (empty($to_insert)) { - if (empty($to_insert) || count($to_insert)==1) { // test + if (empty($to_insert)) { // 继续往前滚日期 return $this->get_history_order_list($startTravelDate); }