|
@@ -72,7 +72,13 @@ class Withdraw extends Controller
|
|
|
if (in_array($item['status'], [1, 2])) $totalSuccess += $item['amount'];
|
|
if (in_array($item['status'], [1, 2])) $totalSuccess += $item['amount'];
|
|
|
if ($item['status'] == 3) $totalFail += $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) {
|
|
} catch (ValidationException $e) {
|
|
|
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) {
|