This commit is contained in:
paoloar77
2024-05-21 01:08:30 +02:00
parent 65aac0a2c5
commit 3d72295adb
2 changed files with 4 additions and 2 deletions

View File

@@ -36,7 +36,7 @@
<h1>Links</h1> <h1>Links</h1>
<form id="articleForm"> <form id="articleForm">
<label for="article_id">ID Articolo:</label> <label for="article_id">ID Articolo:</label>
<input type="text" id="article_id" name="id" /> <input type="text" id="article_id" name="id" value="21569"/>
<br> <br>
<button type="button" data-action="search">Cerca Articolo</button> <button type="button" data-action="search">Cerca Articolo</button>
<button type="button" data-action="checkPreOrder">E' in PreVendita?</button><br> <button type="button" data-action="checkPreOrder">E' in PreVendita?</button><br>

View File

@@ -6147,13 +6147,15 @@ Route::get('/mylinkspao', function () {
}); });
Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) { Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
set_time_limit(0);
ini_set("memory_limit", "512M");
if ($action == 'search') { if ($action == 'search') {
// Logica di ricerca dell'articolo // Logica di ricerca dell'articolo
return loadArticleByIdArticle($id); return loadArticleByIdArticle($id);
} elseif ($action == 'inprevendita') { } elseif ($action == 'inprevendita') {
return libriInPrevendita(); return libriInPrevendita();
} elseif ($action == 'checkPrevendita') { } elseif ($action == 'checkPrevendita') {
// Logica per verificare se l'articolo è in preordine // Logica per verificare se l'articolo è in preordine
$inprevendita = isArticleInPrevendita($id); $inprevendita = isArticleInPrevendita($id);