|
@@ -59,11 +59,10 @@ class Withdraw extends Controller
|
|
|
->orderByDesc('created_at')
|
|
->orderByDesc('created_at')
|
|
|
->forpage($page, $limit)->get();
|
|
->forpage($page, $limit)->get();
|
|
|
|
|
|
|
|
- $amountTotal = $query->where($where)->sum('amount');
|
|
|
|
|
|
|
+ $totalAmount = $query->where($where)->sum('amount');
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- $result = ['amount_total'=>$amountTotal,'total' => $count, 'data' => $list];
|
|
|
|
|
|
|
+ $result = ['total_amount' => $totalAmount, 'total' => $count, '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) {
|