Ken 5 giorni fa
parent
commit
f04e57a94a
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      app/Http/Controllers/admin/Withdraw.php

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

@@ -72,7 +72,13 @@ class Withdraw extends Controller
                 if (in_array($item['status'], [1, 2])) $totalSuccess += $item['amount'];
                 if ($item['status'] == 3) $totalFail += $item['amount'];
             }
-            $result = ['total' => $count, 'total_fail' => $totalFail, 'total_success' => $totalSuccess, 'total_amount' => $totalAmount, 'data' => $list];
+            $result = [
+                'total' => $count,
+                'total_fail' => $totalFail,
+                'total_success' => $totalSuccess,
+                'total_amount' => $totalAmount,
+                'data' => $list
+            ];
         } catch (ValidationException $e) {
             return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
         } catch (Exception $e) {