Ken 1 هفته پیش
والد
کامیت
061d9214d7
1فایلهای تغییر یافته به همراه1 افزوده شده و 7 حذف شده
  1. 1 7
      app/Http/Controllers/admin/Withdraw.php

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

@@ -58,12 +58,7 @@ class Withdraw extends Controller
                 ->orderByRaw('CASE WHEN status = 0 THEN 0 ELSE 1 END')
                 ->orderByDesc('created_at')
                 ->forpage($page, $limit)->get();
-
-
-            $result = [
-                'total' => $count,
-                'data' => $list
-            ];
+            $result = ['total' => $count, 'data' => $list];
         } catch (ValidationException $e) {
             return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
         } catch (Exception $e) {
@@ -72,7 +67,6 @@ class Withdraw extends Controller
         return $this->success($result);
     }
 
-
     public function setNote()
     {
         try {