mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-22 14:04:21 +00:00
update container reschedule for yd
This commit is contained in:
+2
-2
@@ -183,9 +183,9 @@ class FetchOrderListsFromYdPortalProcessor
|
||||
|
||||
$rescheduleETD = strpos($trackingRow->tracking, '开');
|
||||
$rescheduleETA = strpos($trackingRow->tracking, '到港');
|
||||
|
||||
if ($rescheduleETD !== false || $rescheduleETA !== false) {
|
||||
preg_match_all('/([0-9]+.{3})/', $trackingRow->tracking, $matches);
|
||||
dump($matches);
|
||||
$dates = collect();
|
||||
|
||||
foreach($matches[0] as $date){
|
||||
@@ -196,7 +196,7 @@ class FetchOrderListsFromYdPortalProcessor
|
||||
}
|
||||
|
||||
}
|
||||
dump($dates);
|
||||
|
||||
$rescheduleDate = $dates->sortDesc()->first();
|
||||
if(!$delayDate || $rescheduleDate > $delayDate){
|
||||
/** @var Carbon $delayDate */
|
||||
|
||||
Reference in New Issue
Block a user