update
This commit is contained in:
64
.vscode/ftp-kr.sync.cache.json
vendored
64
.vscode/ftp-kr.sync.cache.json
vendored
@@ -35,14 +35,14 @@
|
|||||||
},
|
},
|
||||||
"class.Cron.php": {
|
"class.Cron.php": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 20969,
|
"size": 21248,
|
||||||
"lmtime": 1756237731311,
|
"lmtime": 1763678619283,
|
||||||
"modified": false
|
"modified": false
|
||||||
},
|
},
|
||||||
"class.Products.php": {
|
"class.Products.php": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 11693,
|
"size": 12516,
|
||||||
"lmtime": 1760996915654,
|
"lmtime": 1763678563804,
|
||||||
"modified": false
|
"modified": false
|
||||||
},
|
},
|
||||||
"class.Site.php": {
|
"class.Site.php": {
|
||||||
@@ -118,24 +118,39 @@
|
|||||||
},
|
},
|
||||||
"style.css": {
|
"style.css": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 18247,
|
"size": 19795,
|
||||||
"lmtime": 1741427216637,
|
"lmtime": 1763678459404,
|
||||||
"modified": false
|
"modified": false
|
||||||
},
|
},
|
||||||
"style.css.map": {
|
"style.css.map": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 32918,
|
"size": 36969,
|
||||||
"lmtime": 1741427216637,
|
"lmtime": 1763678459404,
|
||||||
"modified": false
|
"modified": false
|
||||||
},
|
},
|
||||||
"style.scss": {
|
"style.scss": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 22836,
|
"size": 25910,
|
||||||
"lmtime": 1741427216477,
|
"lmtime": 1763678459031,
|
||||||
"modified": false
|
"modified": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"libraries": {},
|
"libraries": {
|
||||||
|
"jquery-confirm": {
|
||||||
|
"jquery-confirm.min.css": {
|
||||||
|
"type": "-",
|
||||||
|
"size": 25673,
|
||||||
|
"lmtime": 1763678163032,
|
||||||
|
"modified": false
|
||||||
|
},
|
||||||
|
"jquery-confirm.min.js": {
|
||||||
|
"type": "-",
|
||||||
|
"size": 21363,
|
||||||
|
"lmtime": 0,
|
||||||
|
"modified": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"robots.txt": {
|
"robots.txt": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 25,
|
"size": 25,
|
||||||
@@ -146,19 +161,40 @@
|
|||||||
"products": {
|
"products": {
|
||||||
"main_view.php": {
|
"main_view.php": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 9119,
|
"size": 13363,
|
||||||
"lmtime": 1744063449814,
|
"lmtime": 1763678650806,
|
||||||
"modified": false
|
"modified": false
|
||||||
},
|
},
|
||||||
"product_history.php": {
|
"product_history.php": {
|
||||||
"type": "-",
|
"type": "-",
|
||||||
"size": 7093,
|
"size": 10080,
|
||||||
"lmtime": 1755699713875,
|
"lmtime": 1755699713875,
|
||||||
|
"modified": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"site": {
|
||||||
|
"layout-cron.php": {
|
||||||
|
"type": "-",
|
||||||
|
"size": 5804,
|
||||||
|
"lmtime": 0,
|
||||||
|
"modified": false
|
||||||
|
},
|
||||||
|
"layout-logged.php": {
|
||||||
|
"type": "-",
|
||||||
|
"size": 4944,
|
||||||
|
"lmtime": 1763678430048,
|
||||||
|
"modified": false
|
||||||
|
},
|
||||||
|
"layout-unlogged.php": {
|
||||||
|
"type": "-",
|
||||||
|
"size": 1056,
|
||||||
|
"lmtime": 0,
|
||||||
"modified": false
|
"modified": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tmp": {},
|
"tmp": {},
|
||||||
|
"tools": {},
|
||||||
"upload": {},
|
"upload": {},
|
||||||
"xml": {}
|
"xml": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ class Cron
|
|||||||
|
|
||||||
$offer_id = $mdb -> get( 'products', 'offer_id', [ 'id' => $row['product_id'] ] );
|
$offer_id = $mdb -> get( 'products', 'offer_id', [ 'id' => $row['product_id'] ] );
|
||||||
$offer_id = str_replace( 'shopify_pl', 'shopify_PL', $offer_id );
|
$offer_id = str_replace( 'shopify_pl', 'shopify_PL', $offer_id );
|
||||||
$p_gid = $itemNode->appendChild($doc->createElement('g:id', $offer_id));
|
$p_gid = $itemNode->appendChild($doc->createElement('id', $offer_id));
|
||||||
|
|
||||||
foreach ($fieldMappings as $dbField => $xmlTag) {
|
foreach ($fieldMappings as $dbField => $xmlTag) {
|
||||||
if (!empty($row[$dbField])) {
|
if (!empty($row[$dbField])) {
|
||||||
@@ -481,7 +481,7 @@ class Cron
|
|||||||
$end_time = microtime( true ); // Zakończenie mierzenia czasu
|
$end_time = microtime( true ); // Zakończenie mierzenia czasu
|
||||||
$execution_time = $end_time - $start_time; // Obliczenie czasu wykonania
|
$execution_time = $end_time - $start_time; // Obliczenie czasu wykonania
|
||||||
|
|
||||||
echo json_encode( [ 'result' => "Agregacja zakończona, dane zapisane do phrases_history_30. Czas wykonania skryptu: " . round( $execution_time, 4 ) . " sekund." ] ); // Wyświetlenie komunikatu
|
echo json_encode( [ 'result' => "Agregacja zakończona, dane zapisane do phrases_history_30. Czas wykonania skryptu: " . round( $execution_time, 4 ) . " sekund.", 'client' => \factory\Campaigns::get_client_name( $client_id ) ] ); // Wyświetlenie komunikatu
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -28,4 +28,10 @@ class Campaigns
|
|||||||
global $mdb;
|
global $mdb;
|
||||||
return $mdb -> count( 'campaigns_history', [ 'campaign_id' => $campaign_id ] );
|
return $mdb -> count( 'campaigns_history', [ 'campaign_id' => $campaign_id ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static public function get_client_name( $client_id )
|
||||||
|
{
|
||||||
|
global $mdb;
|
||||||
|
return $mdb -> get( 'clients', 'name', [ 'id' => $client_id ] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user