Ken 1 неделя назад
Родитель
Сommit
7984db5520
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/admin/Withdraw.php

+ 1 - 1
app/Http/Controllers/admin/Withdraw.php

@@ -172,7 +172,7 @@ class Withdraw extends Controller
             return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
             return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
         } catch (Exception $e) {
         } catch (Exception $e) {
             DB::rollBack();
             DB::rollBack();
-            return $this->error(intval($e->getCode()), $e->getMessage());
+            return $this->error($e->getCode(), $e->getMessage());
         }
         }
         return $this->success();
         return $this->success();
     }
     }