diff --git a/ajax_handler.php b/ajax_handler.php index a1b6342..0a48520 100644 --- a/ajax_handler.php +++ b/ajax_handler.php @@ -132,6 +132,14 @@ try { if ($recharge['status'] === 'completed') { echo json_encode(['code' => 0, 'status' => 'completed']); break; } echo json_encode(['code' => 0, 'status' => 'pending']); break; + case "get_active_orders": + $stmt = $pdo->prepare("SELECT * FROM sms_orders WHERE user_id = ? AND status != "canceled" ORDER BY created_at DESC"); + $stmt->execute([$_SESSION["user_id"]]); + echo json_encode(["code" => 0, "data" => $stmt->fetchAll(PDO::FETCH_ASSOC)], JSON_UNESCAPED_UNICODE); + break; + $stmt->execute([$_SESSION["user_id"]]); + echo json_encode(["code" => 0, "data" => $stmt->fetchAll(PDO::FETCH_ASSOC)], JSON_UNESCAPED_UNICODE); + break; case "upload_image": $file = $_FILES["image"] ?? null; diff --git a/assets/pasted-20260322-124316-cd478cbe.png b/assets/pasted-20260322-124316-cd478cbe.png new file mode 100644 index 0000000..fc23194 Binary files /dev/null and b/assets/pasted-20260322-124316-cd478cbe.png differ diff --git a/assets/pasted-20260322-124734-96de97a5.png b/assets/pasted-20260322-124734-96de97a5.png new file mode 100644 index 0000000..216a1cc Binary files /dev/null and b/assets/pasted-20260322-124734-96de97a5.png differ diff --git a/assets/pasted-20260322-125217-e26b4cc2.png b/assets/pasted-20260322-125217-e26b4cc2.png new file mode 100644 index 0000000..0dd96ef Binary files /dev/null and b/assets/pasted-20260322-125217-e26b4cc2.png differ diff --git a/assets/pasted-20260322-130219-ba2ab35b.png b/assets/pasted-20260322-130219-ba2ab35b.png new file mode 100644 index 0000000..0dd96ef Binary files /dev/null and b/assets/pasted-20260322-130219-ba2ab35b.png differ diff --git a/assets/pasted-20260322-130624-689b1e4b.png b/assets/pasted-20260322-130624-689b1e4b.png new file mode 100644 index 0000000..f3ea8db Binary files /dev/null and b/assets/pasted-20260322-130624-689b1e4b.png differ diff --git a/assets/pasted-20260322-131318-4220415a.png b/assets/pasted-20260322-131318-4220415a.png new file mode 100644 index 0000000..56f26fb Binary files /dev/null and b/assets/pasted-20260322-131318-4220415a.png differ diff --git a/assets/pasted-20260322-131949-2a620588.png b/assets/pasted-20260322-131949-2a620588.png new file mode 100644 index 0000000..c376c03 Binary files /dev/null and b/assets/pasted-20260322-131949-2a620588.png differ diff --git a/assets/pasted-20260322-132511-b5d1f2dd.png b/assets/pasted-20260322-132511-b5d1f2dd.png new file mode 100644 index 0000000..768645f Binary files /dev/null and b/assets/pasted-20260322-132511-b5d1f2dd.png differ diff --git a/dashboard.php b/dashboard.php index ba0abda..79ad9ad 100644 --- a/dashboard.php +++ b/dashboard.php @@ -1,4 +1,5 @@ - - - -
+ + + + + +
@@ -378,7 +398,6 @@ $notice_text = $settings['notice_text'] ?? '欢迎使用全球接码平台!';
-