corretto, era il DB che avevo cancellato l'utente dove era salvata la chiave...

This commit is contained in:
paoloar77
2024-06-15 18:29:22 +02:00
parent 1824f30a94
commit 34aa2b26ef
4 changed files with 53 additions and 12 deletions

View File

@@ -239,11 +239,10 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
$ris .= getarraystr($articles); // Converte solo i dati specificati in JSON
try {
// $product = Product::where('sku', $id)->first();
$products = Product::all($options = ['per_page' => 100, 'page' => 1]);
$product = Product::where('sku', $id)->first();
$ris .= 'Product:' . PHP_EOL;
//$ris .= getarraystr($products);
$ris .= getarraystr($product);
} catch (\Exception $e) {
$ris .= "!!! Errore loadArticleByIdArticle Product: " . $e->getMessage();
}
@@ -300,9 +299,6 @@ function showDettOrdini()
try {
$orders = Order::all();
// $orders = Order::orderBy('DataOra', 'desc')->take(2)->get();
/*
$orders = Order::take(2)->get();
// Show the fields of the orders
foreach ($orders as $order) {
@@ -310,7 +306,7 @@ function showDettOrdini()
$str .= getvalstr("Id", $order->id);
//$str .= getvalstr("DataOra", $order->DataOra);
//$str .= getvalstr("Totale", $order->Totale);
}*/
}
} catch (\Exception $e) {
return "Errore showDettOrdini: " . $e->getMessage();
}