fix error
This commit is contained in:
@@ -68,6 +68,9 @@ class ProductLogger
|
||||
|
||||
public function addLog($type, $message)
|
||||
{
|
||||
if ($type === '') {
|
||||
$type = 'LOG';
|
||||
}
|
||||
if (!isset($this->logs[$type])) {
|
||||
$this->logs[$type] = "";
|
||||
}
|
||||
|
||||
@@ -2193,7 +2193,7 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
if ($codifica) {
|
||||
} else {
|
||||
$orderdetail->CodArticoloGM = intval($prodotto['sku']);
|
||||
$productLogger->addLog('', '$orderdetail->CodArticoloGM' . $orderdetail->CodArticoloGM);
|
||||
$productLogger->addLog('', '$orderdetail->CodArticoloGM= ' . $orderdetail->CodArticoloGM);
|
||||
}
|
||||
|
||||
$productLogger->addLog('', 'sku=' . $sku);
|
||||
@@ -2254,6 +2254,7 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
} //end if status
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
$productLogger->setLogandSendEmail('Nuovo Ordine ERRORE !');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user