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