This commit is contained in:
2025-11-23 16:16:53 +01:00
parent f5db5263ab
commit 5b6c6227c0
3 changed files with 58 additions and 16 deletions

View File

@@ -35,14 +35,14 @@
},
"class.Cron.php": {
"type": "-",
"size": 20969,
"lmtime": 1756237731311,
"size": 21248,
"lmtime": 1763678619283,
"modified": false
},
"class.Products.php": {
"type": "-",
"size": 11693,
"lmtime": 1760996915654,
"size": 12516,
"lmtime": 1763678563804,
"modified": false
},
"class.Site.php": {
@@ -118,24 +118,39 @@
},
"style.css": {
"type": "-",
"size": 18247,
"lmtime": 1741427216637,
"size": 19795,
"lmtime": 1763678459404,
"modified": false
},
"style.css.map": {
"type": "-",
"size": 32918,
"lmtime": 1741427216637,
"size": 36969,
"lmtime": 1763678459404,
"modified": false
},
"style.scss": {
"type": "-",
"size": 22836,
"lmtime": 1741427216477,
"size": 25910,
"lmtime": 1763678459031,
"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": {
"type": "-",
"size": 25,
@@ -146,19 +161,40 @@
"products": {
"main_view.php": {
"type": "-",
"size": 9119,
"lmtime": 1744063449814,
"size": 13363,
"lmtime": 1763678650806,
"modified": false
},
"product_history.php": {
"type": "-",
"size": 7093,
"size": 10080,
"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
}
}
},
"tmp": {},
"tools": {},
"upload": {},
"xml": {}
}

View File

@@ -346,7 +346,7 @@ class Cron
$offer_id = $mdb -> get( 'products', 'offer_id', [ 'id' => $row['product_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) {
if (!empty($row[$dbField])) {
@@ -481,7 +481,7 @@ class Cron
$end_time = microtime( true ); // Zakończenie mierzenia czasu
$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;
}

View File

@@ -28,4 +28,10 @@ class Campaigns
global $mdb;
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 ] );
}
}