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); }