wesmiler 2 месяцев назад
Родитель
Сommit
30b6befe39
1 измененных файлов с 6 добавлено и 7 удалено
  1. 6 7
      app/Http/Controllers/Api/v1/AccountController.php

+ 6 - 7
app/Http/Controllers/Api/v1/AccountController.php

@@ -66,18 +66,17 @@ class AccountController extends webApp
      */
     public function withdraw()
     {
-        try {
+//        try {
             $params = request()->all();
-            var_dump($params);
-            return false;
+
             if (!$result = BalanceLogService::make()->withdraw($this->userId, $params)) {
                 return showJson(BalanceLogService::make()->getError(), false);
             } else {
                 return showJson(BalanceLogService::make()->getError(), true, $result);
             }
-        } catch (\Exception $exception) {
-            $error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
-            return showJson(1046, false, $error);
-        }
+//        } catch (\Exception $exception) {
+//            $error = ['data' => $exception->getTrace(), 'err' => $exception->getMessage()];
+//            return showJson(1046, false, $error);
+//        }
     }
 }