|
|
@@ -35,17 +35,17 @@ class Withdraw extends Controller
|
|
|
$where = PaymentOrderService::getWhere($params);
|
|
|
$count = $query->where($where)->count();
|
|
|
$list = $query->where($where)
|
|
|
- ->with(['member'])
|
|
|
+ ->with(['userInfo'])
|
|
|
->orderBy('created_at', 'desc')
|
|
|
->forpage($page, $limit)->get();
|
|
|
- foreach ($list as &$item) {
|
|
|
- $item['exchange_rate'] = floatval($item['exchange_rate']);
|
|
|
- $item['after_balance'] = floatval($item['after_balance']);
|
|
|
- $item['service_charge'] = floatval($item['service_charge']);
|
|
|
- $item['amount'] = floatval($item['amount']);
|
|
|
- $item['to_account'] = floatval($item['to_account']);
|
|
|
- $item['to_account_usdt'] = floatval(bcdiv($item['to_account'], $item['exchange_rate'], 4));
|
|
|
- }
|
|
|
+// foreach ($list as &$item) {
|
|
|
+// $item['exchange_rate'] = floatval($item['exchange_rate']);
|
|
|
+// $item['after_balance'] = floatval($item['after_balance']);
|
|
|
+// $item['service_charge'] = floatval($item['service_charge']);
|
|
|
+// $item['amount'] = floatval($item['amount']);
|
|
|
+// $item['to_account'] = floatval($item['to_account']);
|
|
|
+// $item['to_account_usdt'] = floatval(bcdiv($item['to_account'], $item['exchange_rate'], 4));
|
|
|
+// }
|
|
|
|
|
|
|
|
|
$result = ['total' => $count, 'data' => $list];
|