bitrix sender debug log added

This commit is contained in:
Thekindbull 2025-02-28 15:33:20 +08:00
parent 59ff3b97a1
commit b8cc63a60f
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,7 @@
namespace App\Models\Bitrix;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
class BitrixSender
{
@ -46,6 +47,10 @@ public function send()
}
catch (\Exception $e)
{
Log::build([
'driver' => 'single',
'path' => storage_path('logs/bitrix.log'),
])->error($e->getMessage());
return false;
}
}

View File

@ -10,7 +10,7 @@ class SendClient
//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 $ID;
const NAME = "NAME";