bitrix sender debug log added
This commit is contained in:
parent
59ff3b97a1
commit
b8cc63a60f
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Models\Bitrix;
|
namespace App\Models\Bitrix;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class BitrixSender
|
class BitrixSender
|
||||||
{
|
{
|
||||||
@ -46,6 +47,10 @@ public function send()
|
|||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
{
|
{
|
||||||
|
Log::build([
|
||||||
|
'driver' => 'single',
|
||||||
|
'path' => storage_path('logs/bitrix.log'),
|
||||||
|
])->error($e->getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@ class SendClient
|
|||||||
|
|
||||||
//CONFIG для Альфы
|
//CONFIG для Альфы
|
||||||
|
|
||||||
private $URL = 'https://b24alfa.pro/rest/3165/v90a792nderzu0dj/lists.element.add.json';
|
private $URL = 'https://b24alfa.pro/rest/3165/v90a792nderzu0dj/lists1.element.add.json';
|
||||||
private $IBLOCK_ID = 27;
|
private $IBLOCK_ID = 27;
|
||||||
private $ID;
|
private $ID;
|
||||||
const NAME = "NAME";
|
const NAME = "NAME";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user