diff --git a/admin/binary.php b/admin/binary.php index b0a3b7b..2f67dd4 100644 --- a/admin/binary.php +++ b/admin/binary.php @@ -12,7 +12,7 @@ if (!hasPermission('view_orders')) { // Auto-settle expired orders $db->beginTransaction(); try { - $stmt = $db->prepare("SELECT o.*, u.win_loss_control as user_control FROM binary_orders o JOIN users u ON o.user_id = u.id WHERE o.status = 0 AND DATE_ADD(o.created_at, INTERVAL o.duration SECOND) <= NOW()"); + $stmt = $db->prepare("SELECT o.*, u.win_loss_control as user_control FROM binary_orders o JOIN users u ON o.user_id = u.id WHERE o.status = 'pending' AND DATE_ADD(o.created_at, INTERVAL o.duration SECOND) <= NOW()"); $stmt->execute(); $expired = $stmt->fetchAll(); foreach ($expired as $o) { @@ -139,7 +139,7 @@ $orders = $stmt->fetchAll(); - + 进行中 已盈利 @@ -153,20 +153,20 @@ $orders = $stmt->fetchAll(); 控赢 - 控亏 + 控输 正常 - +
- - - + + +
diff --git a/admin/contract.php b/admin/contract.php index bab2a95..435ee6c 100644 --- a/admin/contract.php +++ b/admin/contract.php @@ -71,16 +71,16 @@ $orders = $stmt->fetchAll(); 控赢 - 控亏 + 控输 正常
- - - + + +
diff --git a/admin/customer_service.php b/admin/customer_service.php index c035579..d09c2d1 100644 --- a/admin/customer_service.php +++ b/admin/customer_service.php @@ -309,6 +309,7 @@ ob_start();