Ken пре 1 недеља
родитељ
комит
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());
         } catch (Exception $e) {
             DB::rollBack();
-            return $this->error(intval($e->getCode()), $e->getMessage());
+            return $this->error($e->getCode(), $e->getMessage());
         }
         return $this->success();
     }