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