[04-Jan-2026 00:05:42 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 00:05:42 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 42.112.219.112
[04-Jan-2026 00:05:42 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 00:06:29 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 00:06:29 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 42.112.219.112
[04-Jan-2026 00:06:29 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 00:06:29 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 00:06:57 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 00:06:57 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 42.112.219.112
[04-Jan-2026 00:06:57 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 00:10:50 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 00:10:50 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 42.112.219.112
[04-Jan-2026 00:10:50 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 00:10:50 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 00:11:19 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 00:11:19 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 42.112.219.112
[04-Jan-2026 00:11:19 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:45:37 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:45:37 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:45:37 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] Page ID: 557849694089307
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 557849694089307
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] {
    "success": false,
    "error": "\u274c Key \u0111\u00e3 \u0111\u01b0\u1ee3c bind v\u1edbi m\u00e1y '183553431506672'. Kh\u00f4ng th\u1ec3 s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '557849694089307'",
    "data": {
        "success": false,
        "code": 409,
        "reason": "DIFFERENT_MACHINE",
        "message": "\u274c Key \u0111\u00e3 \u0111\u01b0\u1ee3c bind v\u1edbi m\u00e1y '183553431506672'. Kh\u00f4ng th\u1ec3 s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '557849694089307'",
        "timestamp": "2026-01-04 10:45:45",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "bound_machine": "183553431506672",
            "requesting_machine": "557849694089307",
            "time_info": {
                "days_left": 334,
                "expire_date": "11:43:04 03\/12\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "change_machine_info": {
                "can_change_machine": true,
                "reason": "allowed",
                "message": "\u2705 C\u00f3 th\u1ec3 \u0111\u1ed5i m\u00e1y",
                "changes_remaining": 3
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "how_to_change": "S\u1eed d\u1ee5ng action=change_machine v\u1edbi machine_name hi\u1ec7n t\u1ea1i v\u00e0 new_machine_name m\u1edbi"
            },
            "last_used": "10:45:45 04\/01\/2026",
            "updated_at": "10:45:45 04\/01\/2026"
        }
    }
}
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] ❌ API validation failed: ❌ Key đã được bind với máy '183553431506672'. Không thể sử dụng trên máy '557849694089307'
[04-Jan-2026 10:45:45 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 10:46:03",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 334,
                "hours_left": 7993,
                "time_remaining_text": "7992h 57m"
            },
            "usage_info": {
                "total_usage_count": 351,
                "last_used": "10:46:03 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "10:46:03 04\/01\/2026",
            "updated_at": "10:46:03 04\/01\/2026"
        }
    }
}
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 10:46:03 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:46:32 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:46:32 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:46:32 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:46:35 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:46:35 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:46:35 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:46:35 Asia/Ho_Chi_Minh] AGENT LOGOUT: test5
[04-Jan-2026 10:46:52 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:46:52 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:46:52 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] Page ID: 557849694089307
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 557849694089307
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] {
    "success": false,
    "error": "\u274c Key \u0111\u00e3 \u0111\u01b0\u1ee3c bind v\u1edbi m\u00e1y '183553431506672'. Kh\u00f4ng th\u1ec3 s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '557849694089307'",
    "data": {
        "success": false,
        "code": 409,
        "reason": "DIFFERENT_MACHINE",
        "message": "\u274c Key \u0111\u00e3 \u0111\u01b0\u1ee3c bind v\u1edbi m\u00e1y '183553431506672'. Kh\u00f4ng th\u1ec3 s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '557849694089307'",
        "timestamp": "2026-01-04 10:46:57",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "bound_machine": "183553431506672",
            "requesting_machine": "557849694089307",
            "time_info": {
                "days_left": 334,
                "expire_date": "11:43:04 03\/12\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "change_machine_info": {
                "can_change_machine": true,
                "reason": "allowed",
                "message": "\u2705 C\u00f3 th\u1ec3 \u0111\u1ed5i m\u00e1y",
                "changes_remaining": 3
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "how_to_change": "S\u1eed d\u1ee5ng action=change_machine v\u1edbi machine_name hi\u1ec7n t\u1ea1i v\u00e0 new_machine_name m\u1edbi"
            },
            "last_used": "10:46:57 04\/01\/2026",
            "updated_at": "10:46:57 04\/01\/2026"
        }
    }
}
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] ❌ API validation failed: ❌ Key đã được bind với máy '183553431506672'. Không thể sử dụng trên máy '557849694089307'
[04-Jan-2026 10:46:57 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 10:47:03",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 334,
                "hours_left": 7993,
                "time_remaining_text": "7992h 56m"
            },
            "usage_info": {
                "total_usage_count": 352,
                "last_used": "10:47:03 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "10:47:03 04\/01\/2026",
            "updated_at": "10:47:03 04\/01\/2026"
        }
    }
}
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 10:47:03 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] AGENT LOGOUT: test5
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:51:17 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:51:23 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:51:23 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:51:23 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] ✅ Cleared login attempts for IP: 58.187.45.110
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 🛡️ IP Security: Cleared all attempts after successful login
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 🔐 V6.3 - AGENT LOGIN Success (No 2FA): test5 from 58.187.45.110
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 📧 Attempting to send login alert: status=success, username=test5
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] ✅ getUserInfo found: email=shopviabm1994@gmail.com
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] ✅ PHPMailer loaded from /PHPMailer directory
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 📧 Sending login alert email to: shopviabm1994@gmail.com
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 📧 Preparing email to: shopviabm1994@gmail.com
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 📧 SMTP: smtp.gmail.com:587 (User: dtdagency.vn@gmail.com)
[04-Jan-2026 10:52:10 Asia/Ho_Chi_Minh] 📤 Sending email...
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] 📝 Email logged: shopviabm1994@gmail.com - sent - general
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] ✅ Email sent successfully to: shopviabm1994@gmail.com
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] ⚠️ activity_logs table not found, skipping log
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] ✅ Login alert sent successfully
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] ✅ Login alert email sent successfully
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:52:14 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 10:52:28",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 334,
                "hours_left": 7993,
                "time_remaining_text": "7992h 50m"
            },
            "usage_info": {
                "total_usage_count": 353,
                "last_used": "10:52:28 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "10:52:28 04\/01\/2026",
            "updated_at": "10:52:28 04\/01\/2026"
        }
    }
}
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 10:52:28 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 10:52:37 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:52:37 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:52:37 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] AGENT LOGOUT: test5
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:52:55 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 🔐 V6.3 - AGENT LOGIN Failed: WRONG PASSWORD - test1 from 58.187.45.110
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 🔐 recordFail: IP=58.187.45.110, Username=test1 (✅ Valid user_id=2), Attempts=1/3, Block=
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 🛡️ IP Security: {"blocked":false,"remaining":2,"attempts":1,"max_attempts":3,"blocked_until":null,"username_valid":true,"user_id":2,"message":"C\u00f2n 2 l\u1ea7n th\u1eed"}
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 📧 Attempting to send login alert: status=failed, username=test1
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] ✅ getUserInfo found: email=ssss@gmail.com
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] ✅ PHPMailer loaded from /PHPMailer directory
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 📧 Sending login alert email to: shopviabm1994@gmail.com
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 📧 Preparing email to: shopviabm1994@gmail.com
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 📧 SMTP: smtp.gmail.com:587 (User: dtdagency.vn@gmail.com)
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 📤 Sending email...
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 27.2.199.4
[04-Jan-2026 10:53:40 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:53:44 Asia/Ho_Chi_Minh] 📝 Email logged: shopviabm1994@gmail.com - sent - general
[04-Jan-2026 10:53:44 Asia/Ho_Chi_Minh] ✅ Email sent successfully to: shopviabm1994@gmail.com
[04-Jan-2026 10:53:44 Asia/Ho_Chi_Minh] ⚠️ activity_logs table not found, skipping log
[04-Jan-2026 10:53:44 Asia/Ho_Chi_Minh] ✅ Login alert sent successfully
[04-Jan-2026 10:53:44 Asia/Ho_Chi_Minh] ✅ Login alert email sent successfully
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 🔐 V6.3 - AGENT LOGIN: Pending 2FA verification: test4
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 📧 Attempting to send login alert: status=2fa_required, username=test4
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] ✅ getUserInfo found: email=yyyyyy@gmail.com
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] ✅ PHPMailer loaded from /PHPMailer directory
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 📧 Sending login alert email to: shopviabm1994@gmail.com
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 📧 Preparing email to: shopviabm1994@gmail.com
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 📧 SMTP: smtp.gmail.com:587 (User: dtdagency.vn@gmail.com)
[04-Jan-2026 10:53:54 Asia/Ho_Chi_Minh] 📤 Sending email...
[04-Jan-2026 10:53:58 Asia/Ho_Chi_Minh] 📝 Email logged: shopviabm1994@gmail.com - sent - general
[04-Jan-2026 10:53:58 Asia/Ho_Chi_Minh] ✅ Email sent successfully to: shopviabm1994@gmail.com
[04-Jan-2026 10:53:58 Asia/Ho_Chi_Minh] ⚠️ activity_logs table not found, skipping log
[04-Jan-2026 10:53:58 Asia/Ho_Chi_Minh] ✅ Login alert sent successfully
[04-Jan-2026 10:53:58 Asia/Ho_Chi_Minh] ✅ Login alert email sent successfully
[04-Jan-2026 10:57:06 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:57:06 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:57:06 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 10:57:06 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard Config loaded from DB: {"max_attempts":3,"block_duration":15}
[04-Jan-2026 10:57:06 Asia/Ho_Chi_Minh] 🔐 LoginSecurityGuard initialized: 3 attempts, 15 min block, IP: 58.187.45.110
[04-Jan-2026 10:57:06 Asia/Ho_Chi_Minh] ✅ LoginSecurityGuard initialized successfully
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 11:29:36",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 334,
                "hours_left": 7993,
                "time_remaining_text": "7992h 13m"
            },
            "usage_info": {
                "total_usage_count": 354,
                "last_used": "11:29:36 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "11:29:36 04\/01\/2026",
            "updated_at": "11:29:36 04\/01\/2026"
        }
    }
}
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 11:29:36 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 11:30:02 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 13:01:51 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 13:30:42 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 13:31:46 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 13:33:29 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 13:45:55",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 333,
                "hours_left": 7990,
                "time_remaining_text": "7989h 57m"
            },
            "usage_info": {
                "total_usage_count": 358,
                "last_used": "13:45:55 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "13:45:55 04\/01\/2026",
            "updated_at": "13:45:55 04\/01\/2026"
        }
    }
}
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 13:45:55 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 14:00:38",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 333,
                "hours_left": 7990,
                "time_remaining_text": "7989h 42m"
            },
            "usage_info": {
                "total_usage_count": 359,
                "last_used": "14:00:38 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "14:00:38 04\/01\/2026",
            "updated_at": "14:00:38 04\/01\/2026"
        }
    }
}
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 14:00:38 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:02:23 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 14:07:05",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 333,
                "hours_left": 7990,
                "time_remaining_text": "7989h 35m"
            },
            "usage_info": {
                "total_usage_count": 360,
                "last_used": "14:07:05 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "14:07:05 04\/01\/2026",
            "updated_at": "14:07:05 04\/01\/2026"
        }
    }
}
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 14:07:05 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:16:57 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 14:18:52",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 333,
                "hours_left": 7990,
                "time_remaining_text": "7989h 24m"
            },
            "usage_info": {
                "total_usage_count": 361,
                "last_used": "14:18:52 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "14:18:52 04\/01\/2026",
            "updated_at": "14:18:52 04\/01\/2026"
        }
    }
}
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 14:18:52 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:19:12 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 14:25:48",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 333,
                "hours_left": 7990,
                "time_remaining_text": "7989h 17m"
            },
            "usage_info": {
                "total_usage_count": 363,
                "last_used": "14:25:48 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "14:25:48 04\/01\/2026",
            "updated_at": "14:25:48 04\/01\/2026"
        }
    }
}
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 14:25:48 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] === KÍCH HOẠT LICENSE VỚI PAGE ID ===
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] Page ID: 183553431506672
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] ✅ Page ID saved to database: 183553431506672
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 - \u0111ang s\u1eed d\u1ee5ng tr\u00ean m\u00e1y '183553431506672'",
        "timestamp": "2026-01-04 14:27:37",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-SIFD-YI1E-YSJW-TER7-RZYI",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "11:43:04 03\/12\/2025",
                "expire_date": "11:43:04 03\/12\/2026",
                "days_left": 333,
                "hours_left": 7990,
                "time_remaining_text": "7989h 15m"
            },
            "usage_info": {
                "total_usage_count": 364,
                "last_used": "14:27:37 04\/01\/2026",
                "first_bind_time": "11:44:06 03\/12\/2025"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "last_machine_change": "22:28:32 28\/12\/2025",
                "changes_used_this_month": 0,
                "changes_remaining": 3,
                "can_change_machine": true,
                "next_change_available": "C\u00f3 th\u1ec3 \u0111\u1ed5i ngay",
                "time_until_next_change": null,
                "next_month_reset": "01\/02\/2026 00:00:00",
                "note": "C\u00f2n 3 l\u01b0\u1ee3t \u0111\u1ed5i m\u00e1y trong th\u00e1ng n\u00e0y. C\u00f3 th\u1ec3 \u0111\u1ed5i ngay."
            },
            "last_used": "14:27:37 04\/01\/2026",
            "updated_at": "14:27:37 04\/01\/2026"
        }
    }
}
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] ✅ License saved to session successfully
[04-Jan-2026 14:27:37 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 14:28:17 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 16:50:48 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] === V6.4: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-602B-LWET-VQHG-ROO6-ML2Q
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] User ID: 4
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] ✅ License not bound yet or bound to current user, proceeding with API validation
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 v\u00e0 \u0111\u00e3 bind v\u1edbi m\u00e1y '183553431506672' (L\u1ea7n \u0111\u1ea7u ti\u00ean - \u0111\u00e3 t\u1ed1n 1\/3 l\u01b0\u1ee3t)",
        "timestamp": "2026-01-04 16:55:13",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-602B-LWET-VQHG-ROO6-ML2Q",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "21:28:14 26\/11\/2025",
                "expire_date": "21:28:14 26\/11\/2026",
                "days_left": 327,
                "hours_left": 7829,
                "time_remaining_text": "7828h 33m"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "changes_used_this_month": 1,
                "changes_remaining": 2,
                "first_bind": true,
                "bind_time": "16:55:13 04\/01\/2026",
                "can_change_machine": false,
                "next_change_available": "16:55:13 05\/01\/2026",
                "time_until_next_change": {
                    "hours": 24,
                    "minutes": 1440,
                    "formatted": "24h 0m"
                },
                "note": "Ph\u1ea3i \u0111\u1ee3i 24 gi\u1edd t\u1eeb l\u1ea7n bind \u0111\u1ea7u ti\u00ean m\u1edbi c\u00f3 th\u1ec3 \u0111\u1ed5i m\u00e1y"
            },
            "last_used": "16:55:13 04\/01\/2026",
            "updated_at": "16:55:13 04\/01\/2026"
        }
    }
}
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] ✅ License bound to user ID 4 successfully
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] ✅ License bound to user ID 4 successfully
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] ✅ Expire date: 21:28:14 26/11/2026
[04-Jan-2026 16:55:13 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 16:56:32 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 17:12:14 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:12:14 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:12:14 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] === V6.4.1: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] License Key: aaa
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] ❌ Format validation FAILED
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:12:41 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] === V6.4.1: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-XXXX-XXXX-XXXX-XXXX-XXXX
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] ✅ License not bound yet or bound to current user, proceeding with API validation
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] {
    "success": false,
    "error": "Key kh\u00f4ng t\u1ed3n t\u1ea1i trong h\u1ec7 th\u1ed1ng",
    "data": {
        "success": false,
        "code": 404,
        "reason": "KEY_NOT_FOUND",
        "message": "Key kh\u00f4ng t\u1ed3n t\u1ea1i trong h\u1ec7 th\u1ed1ng",
        "timestamp": "2026-01-04 17:13:02",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-XXXX-XXXX-XXXX-XXXX-XXXX",
            "searched_at": "2026-01-04 17:13:02"
        }
    }
}
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] ❌ API validation failed: Key không tồn tại trong hệ thống
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:13:02 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] === V6.4.1: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-4Y6F-UHSW-Y7V2-JW56-ILLZ
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] ✅ License not bound yet or bound to current user, proceeding with API validation
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] {
    "success": false,
    "error": "Key \u0111\u00e3 h\u1ebft h\u1ea1n ho\u1eb7c b\u1ecb v\u00f4 hi\u1ec7u h\u00f3a",
    "data": {
        "success": false,
        "code": 410,
        "reason": "KEY_EXPIRED",
        "message": "Key \u0111\u00e3 h\u1ebft h\u1ea1n ho\u1eb7c b\u1ecb v\u00f4 hi\u1ec7u h\u00f3a",
        "timestamp": "2026-01-04 17:13:51",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-4Y6F-UHSW-Y7V2-JW56-ILLZ",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "expired",
            "expire_date": "16:39:44 25\/12\/2025",
            "expired_since_days": 11,
            "last_used": "17:13:51 04\/01\/2026",
            "updated_at": "17:13:51 04\/01\/2026"
        }
    }
}
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] ❌ API validation failed: Key đã hết hạn hoặc bị vô hiệu hóa
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:13:51 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] === V6.4.1: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-KHANGBM-CQRT-S364-ATDN-SG07-R6TG
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] ❌ Format validation FAILED
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:14:40 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] === V6.4.1: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-KHANGBM-CQRT-S364-ATDN-SG07-R6TG
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] ❌ Format validation FAILED
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:14:57 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:35:16 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:35:16 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:35:16 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] === V6.4.1 FIXED: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] License Key: sss
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] ❌ Format validation FAILED
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:35:55 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] === V6.4.1 FIXED: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-KHANGBM-CQRT-S364-ATDN-SG07-R6TG
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] ❌ Format validation FAILED
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 6
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] ℹ️ User ID 6 has no license binding in database
[04-Jan-2026 17:36:06 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] === V6.4.1: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-HD6L-O3MN-AOUD-L9UQ-OIEM
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] User ID: 6
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] ✅ License not bound yet or bound to current user, proceeding with API validation
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 v\u00e0 \u0111\u00e3 bind v\u1edbi m\u00e1y '183553431506672' (L\u1ea7n \u0111\u1ea7u ti\u00ean - \u0111\u00e3 t\u1ed1n 1\/3 l\u01b0\u1ee3t)",
        "timestamp": "2026-01-04 17:37:48",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-HD6L-O3MN-AOUD-L9UQ-OIEM",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "17:37:36 04\/01\/2026",
                "expire_date": "17:37:36 04\/02\/2026",
                "days_left": 31,
                "hours_left": 744,
                "time_remaining_text": "743h 59m"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "183553431506672",
                "changes_used_this_month": 1,
                "changes_remaining": 2,
                "first_bind": true,
                "bind_time": "17:37:48 04\/01\/2026",
                "can_change_machine": false,
                "next_change_available": "17:37:48 05\/01\/2026",
                "time_until_next_change": {
                    "hours": 24,
                    "minutes": 1440,
                    "formatted": "24h 0m"
                },
                "note": "Ph\u1ea3i \u0111\u1ee3i 24 gi\u1edd t\u1eeb l\u1ea7n bind \u0111\u1ea7u ti\u00ean m\u1edbi c\u00f3 th\u1ec3 \u0111\u1ed5i m\u00e1y"
            },
            "last_used": "17:37:48 04\/01\/2026",
            "updated_at": "17:37:48 04\/01\/2026"
        }
    }
}
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] ✅ License bound to user ID 6 successfully
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] ✅ License bound to user ID 6 successfully
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] ✅ Expire date: 17:37:36 04/02/2026
[04-Jan-2026 17:37:48 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:40:37 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 17:41:33 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 17:41:33 Asia/Ho_Chi_Minh] ℹ️ User ID 7 has no license binding in database
[04-Jan-2026 17:41:33 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] === V6.4.1 FIXED: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] License Key: ssss
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] User ID: 7
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] ❌ Format validation FAILED
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] ℹ️ User ID 7 has no license binding in database
[04-Jan-2026 17:42:00 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] === V6.4.1 FIXED: KÍCH HOẠT LICENSE VỚI USER ID ===
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] User ID: 7
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] Username: test4
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] ✅ Using machine_name: USER_7
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] ✅ License not bound yet or bound to current user, proceeding with API validation
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] === API RESPONSE ===
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 v\u00e0 \u0111\u00e3 bind v\u1edbi m\u00e1y 'USER_7' (L\u1ea7n \u0111\u1ea7u ti\u00ean - \u0111\u00e3 t\u1ed1n 1\/3 l\u01b0\u1ee3t)",
        "timestamp": "2026-01-04 17:42:34",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "17:42:21 04\/01\/2026",
                "expire_date": "17:42:21 04\/02\/2026",
                "days_left": 31,
                "hours_left": 744,
                "time_remaining_text": "743h 59m"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "USER_7",
                "changes_used_this_month": 1,
                "changes_remaining": 2,
                "first_bind": true,
                "bind_time": "17:42:34 04\/01\/2026",
                "can_change_machine": false,
                "next_change_available": "17:42:34 05\/01\/2026",
                "time_until_next_change": {
                    "hours": 24,
                    "minutes": 1440,
                    "formatted": "24h 0m"
                },
                "note": "Ph\u1ea3i \u0111\u1ee3i 24 gi\u1edd t\u1eeb l\u1ea7n bind \u0111\u1ea7u ti\u00ean m\u1edbi c\u00f3 th\u1ec3 \u0111\u1ed5i m\u00e1y"
            },
            "last_used": "17:42:34 04\/01\/2026",
            "updated_at": "17:42:34 04\/01\/2026"
        }
    }
}
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] ✅ License bound to user ID 7 successfully
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] ✅ License bound to user ID 7 successfully
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] ✅ Expire date: 17:42:21 04/02/2026
[04-Jan-2026 17:42:34 Asia/Ho_Chi_Minh] =====================================================
[04-Jan-2026 17:44:25 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 17:44:51 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 17:44:51 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 7: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 17:44:51 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_7
[04-Jan-2026 17:44:51 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 17:44:51 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 7
[04-Jan-2026 17:44:51 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[04-Jan-2026 17:55:04 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 17:55:31 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 17:55:31 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 7: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 17:55:31 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_7
[04-Jan-2026 17:55:31 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 17:55:31 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 7
[04-Jan-2026 17:55:31 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[04-Jan-2026 17:55:42 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 17:56:00 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 17:56:00 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 7: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 17:56:00 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_7
[04-Jan-2026 17:56:00 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 17:56:00 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 7
[04-Jan-2026 17:56:00 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[04-Jan-2026 18:09:37 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 18:09:37 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 7: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 18:09:37 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_7
[04-Jan-2026 18:09:37 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 18:09:37 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 7
[04-Jan-2026 18:09:37 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[04-Jan-2026 18:38:56 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 18:38:56 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 7: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 18:38:56 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_7
[04-Jan-2026 18:38:56 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 18:38:56 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 7
[04-Jan-2026 18:38:56 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[04-Jan-2026 18:42:16 Asia/Ho_Chi_Minh] AGENT LOGOUT: test4
[04-Jan-2026 18:42:40 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 18:42:40 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 7: DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ
[04-Jan-2026 18:42:40 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_7
[04-Jan-2026 18:42:40 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-Y2I1-12AI-K035-IY4B-9HPJ","machine_name":"USER_7"}
[04-Jan-2026 18:42:40 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 7
[04-Jan-2026 18:42:40 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[04-Jan-2026 21:20:26 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 7
[04-Jan-2026 21:20:26 Asia/Ho_Chi_Minh] Error getting user license info: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'license_expire_date' in 'SELECT'
[04-Jan-2026 21:20:26 Asia/Ho_Chi_Minh] ℹ️ User ID 7 has no license binding in database
[04-Jan-2026 21:20:26 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[04-Jan-2026 21:20:26 Asia/Ho_Chi_Minh] Error getting user license info: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'license_expire_date' in 'SELECT'
[06-Jan-2026 08:13:39 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 8
[06-Jan-2026 08:13:39 Asia/Ho_Chi_Minh] ℹ️ User ID 8 has no license binding in database
[06-Jan-2026 08:13:39 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[06-Jan-2026 09:20:52 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 8
[06-Jan-2026 09:20:52 Asia/Ho_Chi_Minh] ℹ️ User ID 8 has no license binding in database
[06-Jan-2026 09:20:52 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] =====================================================
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] === V6.4.1 FIXED: KÍCH HOẠT LICENSE VỚI USER ID ===
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] License Key: DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] User ID: 8
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] Username: test1
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ Format validation PASSED
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ Using machine_name: USER_8
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ License not bound yet or bound to current user, proceeding with API validation
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD","machine_name":"USER_8"}
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] === API RESPONSE ===
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] {
    "success": true,
    "data": {
        "success": true,
        "code": 200,
        "reason": "SUCCESS",
        "message": "\u2705 Key h\u1ee3p l\u1ec7 v\u00e0 \u0111\u00e3 bind v\u1edbi m\u00e1y 'USER_8' (L\u1ea7n \u0111\u1ea7u ti\u00ean - \u0111\u00e3 t\u1ed1n 1\/3 l\u01b0\u1ee3t)",
        "timestamp": "2026-01-06 09:22:33",
        "data": {
            "key": "DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD",
            "product_name": "DTD-AGENCY-VN-CHATBOTAI",
            "product_id": "DTD-AGENCY-VN-01",
            "status": "active",
            "time_info": {
                "purchase_date": "09:22:10 06\/01\/2026",
                "expire_date": "09:22:10 06\/02\/2026",
                "days_left": 31,
                "hours_left": 744,
                "time_remaining_text": "743h 59m"
            },
            "machine_binding": {
                "enabled": true,
                "bound_machine": "USER_8",
                "changes_used_this_month": 1,
                "changes_remaining": 2,
                "first_bind": true,
                "bind_time": "09:22:33 06\/01\/2026",
                "can_change_machine": false,
                "next_change_available": "09:22:33 07\/01\/2026",
                "time_until_next_change": {
                    "hours": 24,
                    "minutes": 1440,
                    "formatted": "24h 0m"
                },
                "note": "Ph\u1ea3i \u0111\u1ee3i 24 gi\u1edd t\u1eeb l\u1ea7n bind \u0111\u1ea7u ti\u00ean m\u1edbi c\u00f3 th\u1ec3 \u0111\u1ed5i m\u00e1y"
            },
            "last_used": "09:22:33 06\/01\/2026",
            "updated_at": "09:22:33 06\/01\/2026"
        }
    }
}
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ License bound to user ID 8 successfully
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ License expire date saved: 09:22:10 06/02/2026
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ License bound to user ID 8 successfully
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] ✅ Expire date: 09:22:10 06/02/2026
[06-Jan-2026 09:22:33 Asia/Ho_Chi_Minh] =====================================================
[06-Jan-2026 13:03:06 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 8
[06-Jan-2026 13:03:06 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 8: DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD
[06-Jan-2026 13:03:06 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_8
[06-Jan-2026 13:03:06 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD","machine_name":"USER_8"}
[06-Jan-2026 13:03:06 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 8
[06-Jan-2026 13:03:06 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[06-Jan-2026 13:21:59 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 8
[06-Jan-2026 13:21:59 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 8: DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD
[06-Jan-2026 13:21:59 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_8
[06-Jan-2026 13:21:59 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD","machine_name":"USER_8"}
[06-Jan-2026 13:21:59 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 8
[06-Jan-2026 13:21:59 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[06-Jan-2026 13:42:31 Asia/Ho_Chi_Minh] AGENT SESSION EXPIRED: test1
[06-Jan-2026 14:04:45 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 8
[06-Jan-2026 14:04:45 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 8: DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD
[06-Jan-2026 14:04:45 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_8
[06-Jan-2026 14:04:45 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD","machine_name":"USER_8"}
[06-Jan-2026 14:04:45 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 8
[06-Jan-2026 14:04:45 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[06-Jan-2026 14:31:06 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 8
[06-Jan-2026 14:31:06 Asia/Ho_Chi_Minh] ✅ Found existing license binding for user ID 8: DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD
[06-Jan-2026 14:31:06 Asia/Ho_Chi_Minh] 🔧 Using machine_name for API: USER_8
[06-Jan-2026 14:31:06 Asia/Ho_Chi_Minh] 📡 API Request: {"action":"validate","key":"DTD-AGENCY-VN-CHATBOTAI-EC6H-HH3K-DTF2-E6SK-EXGD","machine_name":"USER_8"}
[06-Jan-2026 14:31:06 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully for user ID 8
[06-Jan-2026 14:31:06 Asia/Ho_Chi_Minh] ✅ License auto-loaded successfully - User can access system
[06-Jan-2026 14:52:28 Asia/Ho_Chi_Minh] AGENT SESSION EXPIRED: test1
[06-Jan-2026 14:53:33 Asia/Ho_Chi_Minh] AGENT LOGOUT: test1
[06-Jan-2026 14:53:43 Asia/Ho_Chi_Minh] 🔄 Checking for existing license binding for user ID: 9
[06-Jan-2026 14:53:43 Asia/Ho_Chi_Minh] ℹ️ User ID 9 has no license binding in database
[06-Jan-2026 14:53:43 Asia/Ho_Chi_Minh] ℹ️ No existing license or license invalid - User needs to enter license key
[06-Jan-2026 21:45:14 Asia/Ho_Chi_Minh] AGENT SESSION EXPIRED: test1
[07-Jan-2026 08:55:04 Asia/Ho_Chi_Minh] AGENT SESSION EXPIRED: test1
