From 9c8652e6a31c86ad8c6a5b9d7096a3e42627be8e Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sat, 21 Feb 2026 09:02:49 +0000 Subject: [PATCH] Autosave: 20260221-090248 --- admin/binary.php | 14 +- admin/contract.php | 8 +- admin/customer_service.php | 47 ++++-- admin/index.php | 4 +- api/admin_notifications.php | 4 +- api/binary.php | 4 +- api/chat.php | 148 +++++++++++------- api/finance.php | 6 +- api/spot.php | 14 +- .../images/chat/1771661562_699968faa32f7.png | Bin 0 -> 1560169 bytes .../images/chat/1771661942_69996a760adf1.png | Bin 0 -> 1464128 bytes .../images/chat/1771662235_69996b9bdbae5.png | Bin 0 -> 879116 bytes .../images/chat/1771662254_69996bae21045.jpeg | Bin 0 -> 32013 bytes assets/pasted-20260221-080254-2cba8c09.png | Bin 0 -> 27713 bytes assets/pasted-20260221-080847-a20da952.png | Bin 0 -> 27713 bytes assets/pasted-20260221-081536-c92afd1b.png | Bin 0 -> 29326 bytes assets/pasted-20260221-083858-38a6da88.png | Bin 0 -> 35265 bytes assets/pasted-20260221-085332-23d6424d.png | Bin 0 -> 25642 bytes db/database.sql | 13 +- includes/lang.php | 20 +++ mining.php | 67 +++++++- profile.php | 9 +- 22 files changed, 249 insertions(+), 109 deletions(-) create mode 100644 assets/images/chat/1771661562_699968faa32f7.png create mode 100644 assets/images/chat/1771661942_69996a760adf1.png create mode 100644 assets/images/chat/1771662235_69996b9bdbae5.png create mode 100644 assets/images/chat/1771662254_69996bae21045.jpeg create mode 100644 assets/pasted-20260221-080254-2cba8c09.png create mode 100644 assets/pasted-20260221-080847-a20da952.png create mode 100644 assets/pasted-20260221-081536-c92afd1b.png create mode 100644 assets/pasted-20260221-083858-38a6da88.png create mode 100644 assets/pasted-20260221-085332-23d6424d.png 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();