|
|
@@ -51,23 +51,11 @@ class Home extends Controller
|
|
|
$query1 = clone $query;
|
|
|
$usdTotalFail = (float)$query1->where('status', 2)
|
|
|
->sum('amount');
|
|
|
- $query1 = clone $query;
|
|
|
- $sql = $query1->where('status', 2)->toSql();
|
|
|
-
|
|
|
- $bindings = $query1->getBindings();
|
|
|
-
|
|
|
-// 将绑定的参数替换到 SQL 查询中
|
|
|
- foreach ($bindings as $binding) {
|
|
|
- // 使用 ? 替换成绑定的值
|
|
|
- $sql = preg_replace('/\?/', "'" . addslashes($binding) . "'", $sql, 1);
|
|
|
- }
|
|
|
-
|
|
|
$result = [
|
|
|
'withdraw_usdt' => [
|
|
|
'total_fail' => $usdTotalFail,
|
|
|
'total_success' => $usdTotalSuccess,
|
|
|
'total_amount' => $usdTotalAmount,
|
|
|
- 'sql'=>$sql
|
|
|
],
|
|
|
'withdraw_rmb' => [
|
|
|
'total_fail' => $totalFail,
|