log
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Mylog;
|
||||
use App\Order as AppOrder;
|
||||
use Codexshaper\WooCommerce\Facades\Order;
|
||||
use Illuminate\Console\Command;
|
||||
@@ -90,10 +91,9 @@ class OrderUpdateGm extends Command
|
||||
}
|
||||
}
|
||||
|
||||
// get the directory actual name and put in the log file
|
||||
$title = '*** SITO DI PRODUZIONE *** ';
|
||||
// get the directory actual name and put in the log file
|
||||
|
||||
$log = $title . ' Ordini aggiornati' . "\n";
|
||||
$log = ' Ordini aggiornati' . "\n";
|
||||
|
||||
// check if there are orders to log
|
||||
if($orderupdated > 0) {
|
||||
@@ -101,7 +101,7 @@ class OrderUpdateGm extends Command
|
||||
Mail::raw($log, function ($message, $orderupdated) {
|
||||
$message->to("log@fioredellavita.it");
|
||||
//$message->bcc('');
|
||||
$message->subject("Ordini Aggiornati su GM:" . $orderupdated);
|
||||
$message->subject(Mylog::getSubjectEmail("Ordini Aggiornati su GM:" . $orderupdated));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user