diff --git a/app/Nova/Actions/Sber/SyncWithSystem.php b/app/Nova/Actions/Sber/SyncWithSystem.php index e277def..cb38f76 100644 --- a/app/Nova/Actions/Sber/SyncWithSystem.php +++ b/app/Nova/Actions/Sber/SyncWithSystem.php @@ -69,11 +69,10 @@ class SyncWithSystem extends Action $success = false; if (is_object($systemResponse)) { + // Usually works here... $success = $systemResponse->errCode == 0; - info('aaa'); } else { $success = $systemResponse['errCode'] == 0; - info('bbb'); } $orderItem->update([ @@ -81,8 +80,8 @@ class SyncWithSystem extends Action ]); return Action::modal('modal-response', [ + 'title' => 'SYSTEM API', 'html' => $success ? "Success" : "Fail", - 'title' => $success ? "Success" : "Fail", ]); }