aa
This commit is contained in:
@@ -6222,9 +6222,14 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
|
||||
if ($action == 'search') {
|
||||
// Logica di ricerca dell'articolo
|
||||
return loadArticleByIdArticle($id);
|
||||
} elseif ($action == 'checkPreOrder') {
|
||||
} elseif ($action == 'checkPrevendita') {
|
||||
// Logica per verificare se l'articolo è in preordine
|
||||
return "Verifica preordine per l'articolo con ID: " . $id;
|
||||
$inprevendita = isArticleInPrevendita($id);
|
||||
if ($inprevendita) {
|
||||
return "L'articolo è in prevendita";
|
||||
} else {
|
||||
return "---";
|
||||
}
|
||||
} else {
|
||||
return "Azione non supportata";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user