ryan 2 недель назад
Родитель
Сommit
86ba26f708
1 измененных файлов с 14 добавлено и 14 удалено
  1. 14 14
      frontendApi/modules/v1/controllers/UserController.php

+ 14 - 14
frontendApi/modules/v1/controllers/UserController.php

@@ -608,26 +608,26 @@ class UserController extends BaseController {
 
     public function actionGuestDecDebugPaid()
     {
-        try {
+//        try {
             $input = Yii::$app->request->post();
             $result = (new GuestDeclarationOrderService())->debugCompletePaidDraft(
                 (string) ($input['draftId'] ?? ''),
                 (string) ($input['accessToken'] ?? '')
             );
             return static::notice($result);
-        } catch (\Throwable $e) {
-            LoggerTool::error([
-                'event' => 'guestDec_debug_paid_failed',
-                'exception' => get_class($e),
-                'message' => $e->getMessage(),
-                'file' => basename($e->getFile()),
-                'line' => $e->getLine(),
-            ]);
-            if ($e instanceof \yii\web\HttpException) {
-                return static::notice($e->getMessage(), $e->statusCode);
-            }
-            return static::notice('Unable to debug-complete guest order.', 500);
-        }
+//        } catch (\Throwable $e) {
+//            LoggerTool::error([
+//                'event' => 'guestDec_debug_paid_failed',
+//                'exception' => get_class($e),
+//                'message' => $e->getMessage(),
+//                'file' => basename($e->getFile()),
+//                'line' => $e->getLine(),
+//            ]);
+//            if ($e instanceof \yii\web\HttpException) {
+//                return static::notice($e->getMessage(), $e->statusCode);
+//            }
+//            return static::notice('Unable to debug-complete guest order.', 500);
+//        }
     }
 
     public function actionGuestDecStatus()