логи
parent
28e9dc6366
commit
05a3f8eeb1
|
|
@ -27,6 +27,9 @@ class Sync1cApiController extends Controller
|
||||||
public function syncAutoData(Request $request)
|
public function syncAutoData(Request $request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
Log::error('Запрос машин пришел');
|
||||||
|
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|
||||||
$segments = Segment::listActive();
|
$segments = Segment::listActive();
|
||||||
|
|
@ -93,8 +96,7 @@ class Sync1cApiController extends Controller
|
||||||
Log::error('Error processing data', [
|
Log::error('Error processing data', [
|
||||||
'message' => $e->getMessage(),
|
'message' => $e->getMessage(),
|
||||||
'line' => $e->getLine(),
|
'line' => $e->getLine(),
|
||||||
'file' => $e->getFile(),
|
'file' => $e->getFile()
|
||||||
'value' => $value,
|
|
||||||
]);
|
]);
|
||||||
return response()->json(['error' => 'Failed to synchronize data'], 500);
|
return response()->json(['error' => 'Failed to synchronize data'], 500);
|
||||||
}
|
}
|
||||||
|
|
@ -102,6 +104,9 @@ class Sync1cApiController extends Controller
|
||||||
public function syncOwners(Request $request)
|
public function syncOwners(Request $request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
Log::error('Запрос владельцев пришел');
|
||||||
|
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|
||||||
Storage::disk('local')->put('last_req_owners.json', json_encode($request->json()->all(), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
|
Storage::disk('local')->put('last_req_owners.json', json_encode($request->json()->all(), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
|
||||||
|
|
@ -162,6 +167,9 @@ class Sync1cApiController extends Controller
|
||||||
public function syncOwnerContracts(Request $request)
|
public function syncOwnerContracts(Request $request)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
Log::error('Запрос контрактов пришел');
|
||||||
|
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|
||||||
Storage::disk('local')->put('last_req_contracts.json', json_encode($request->json()->all(), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
|
Storage::disk('local')->put('last_req_contracts.json', json_encode($request->json()->all(), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue