|
|
AIWORKÈí¼þÆ»¹ûH5°¸Àý×Ô¶¯»¯¿´¹ã¸æß£½ð±Òϵͳ
- // ´´½¨ WebView ʵÀý
- var web = new WebView();
- // ÏÔʾ WebView ½çÃæ
- web.show();
- // ¼ÓÔØ±¾µØ HTML Îļþ
- var htmlPath = project.getCodePath() + "h5.html";
- web.loadFile(htmlPath);
- // ¶¨Òå H5 Öе÷Óõĺ¯Êý
- function test(arg) {
- printl("ÎÒ±» H5 µ÷ÓÃÁË£¬²ÎÊýÊÇ: " + arg);
- }
- // ¶¨Òå·µ»Ø×ÀÃæµÄº¯Êý£¬¹©H5Ò³Ãæµ÷ÓÃ
- function returnToHome() {
- printl("Ö´Ðзµ»Ø×ÀÃæ²Ù×÷");
- hid.home();
- }
- // ´òÓ¡¼ÓÔØÐÅÏ¢
- printl("WebView ÒÑ´´½¨²¢¼ÓÔØ±¾µØÎļþ: " + htmlPath);
¸´ÖÆ´úÂë
- <!DOCTYPE html>
- <!--
- 🍎½»Á÷QQȺ£º711841924£¨ÈºÒ» - Æ»¹ûÄÚ²âȺ£©
- 🍎½»Á÷QQȺ£º528816639
- -->
- <html lang="zh-CN">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <title>💰 ½ð±ÒÊÕ¸î»ú Pro - ×Ô¶¯»¯ß£½ð±ÒÉñÆ÷</title>
- <style>
- /* ============================================
- * ½ð±ÒÊÕ¸î»ú Pro - Ñùʽ¶¨Òå
- * ¹¦ÄÜ: ×Ô¶¯»¯¿´¹ã¸æß£½ð±Òϵͳ
- * ============================================ */
- * { margin: 0; padding: 0; box-sizing: border-box; }
-
- :root {
- --gold: #FFD700;
- --gold-dark: #FFA500;
- --money-green: #00C851;
- --vip-purple: #9C27B0;
- --bg-dark: #1a1a2e;
- --bg-card: #16213e;
- --text-primary: #ffffff;
- --text-secondary: #a0a0a0;
- }
- body {
- font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
- background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
- color: var(--text-primary);
- min-height: 100vh;
- overflow-x: hidden;
- }
- /* ½ð±ÒÆ®Â䶯»±³¾° */
- .coins-rain {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- pointer-events: none;
- z-index: 0;
- overflow: hidden;
- }
- .coin {
- position: absolute;
- font-size: 20px;
- animation: coinFall linear infinite;
- opacity: 0.3;
- }
- @keyframes coinFall {
- 0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
- 10% { opacity: 0.3; }
- 90% { opacity: 0.3; }
- 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
- }
- /* QQȺÐÅÏ¢±êÌâÀ¸ */
- .qq-group-bar {
- background: linear-gradient(90deg, #FF6B6B 0%, #FF8E53 50%, #FFD700 100%);
- padding: 10px 16px;
- text-align: center;
- position: relative;
- z-index: 20;
- box-shadow: 0 2px 10px rgba(0,0,0,0.3);
- }
- .qq-group-text {
- font-size: 13px;
- font-weight: 700;
- color: #fff;
- text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
- letter-spacing: 0.5px;
- }
- .app-container {
- position: relative;
- z-index: 10;
- max-width: 480px;
- margin: 0 auto;
- padding: 16px;
- }
- /* ¶¥²¿½ð±Òͳ¼Æ */
- .gold-header {
- background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
- border-radius: 20px;
- padding: 24px;
- text-align: center;
- margin-bottom: 20px;
- box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
- position: relative;
- overflow: hidden;
- }
- .gold-header::before {
- content: '💰';
- position: absolute;
- font-size: 120px;
- opacity: 0.1;
- right: -20px;
- top: -20px;
- }
- .today-earnings {
- font-size: 14px;
- color: rgba(0,0,0,0.6);
- margin-bottom: 8px;
- font-weight: 600;
- }
- .gold-amount {
- font-size: 48px;
- font-weight: 900;
- color: #000;
- text-shadow: 2px 2px 4px rgba(255,255,255,0.3);
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- }
- .gold-amount::before {
- content: '💎';
- font-size: 32px;
- }
- .gold-convert {
- font-size: 13px;
- color: rgba(0,0,0,0.7);
- margin-top: 8px;
- background: rgba(255,255,255,0.3);
- display: inline-block;
- padding: 4px 12px;
- border-radius: 20px;
- }
- /* ͳ¼Æ¿¨Æ¬ */
- .stats-row {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 12px;
- margin-bottom: 20px;
- }
- .stat-box {
- background: var(--bg-card);
- border-radius: 16px;
- padding: 16px 8px;
- text-align: center;
- border: 1px solid rgba(255,215,0,0.1);
- }
- .stat-icon {
- font-size: 24px;
- margin-bottom: 4px;
- }
- .stat-value {
- font-size: 20px;
- font-weight: 800;
- color: var(--gold);
- }
- .stat-label {
- font-size: 11px;
- color: var(--text-secondary);
- margin-top: 2px;
- }
- /* ƽ̨Áбí */
- .platforms-section {
- margin-bottom: 20px;
- }
- .section-title {
- font-size: 16px;
- font-weight: 700;
- margin-bottom: 12px;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .platform-card {
- background: var(--bg-card);
- border-radius: 16px;
- padding: 16px;
- margin-bottom: 12px;
- border: 1px solid rgba(255,255,255,0.05);
- display: flex;
- align-items: center;
- gap: 12px;
- transition: all 0.3s ease;
- }
- .platform-card:hover {
- border-color: rgba(255,215,0,0.3);
- transform: translateX(4px);
- }
- .platform-icon {
- width: 48px;
- height: 48px;
- border-radius: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28px;
- flex-shrink: 0;
- }
- .platform-icon.douyin { background: linear-gradient(135deg, #000 0%, #333 100%); }
- .platform-icon.kuaishou { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%); }
- .platform-icon.baidu { background: linear-gradient(135deg, #2932E1 0%, #4B5CFF 100%); }
- .platform-icon.fanqie { background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%); }
- .platform-info {
- flex: 1;
- }
- .platform-name {
- font-size: 15px;
- font-weight: 700;
- margin-bottom: 4px;
- }
- .platform-status {
- font-size: 12px;
- color: var(--text-secondary);
- }
- .platform-status.ready { color: var(--money-green); }
- .platform-status.running { color: var(--gold); }
- .platform-status.cooldown { color: #FF6B6B; }
- .platform-earnings {
- text-align: right;
- }
- .earnings-amount {
- font-size: 18px;
- font-weight: 800;
- color: var(--gold);
- }
- .earnings-label {
- font-size: 10px;
- color: var(--text-secondary);
- }
- /* ¿ª¹Ø */
- .switch {
- position: relative;
- width: 50px;
- height: 26px;
- flex-shrink: 0;
- }
- .switch input {
- opacity: 0;
- width: 0;
- height: 0;
- }
- .slider {
- position: absolute;
- cursor: pointer;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: #333;
- transition: .4s;
- border-radius: 26px;
- }
- .slider:before {
- position: absolute;
- content: "";
- height: 20px;
- width: 20px;
- left: 3px;
- bottom: 3px;
- background-color: white;
- transition: .4s;
- border-radius: 50%;
- }
- input:checked + .slider {
- background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
- }
- input:checked + .slider:before {
- transform: translateX(24px);
- }
- /* ¿ØÖư´Å¥ */
- .control-panel {
- background: var(--bg-card);
- border-radius: 20px;
- padding: 20px;
- margin-bottom: 20px;
- }
- .main-btn {
- width: 100%;
- padding: 18px;
- border: none;
- border-radius: 16px;
- font-size: 18px;
- font-weight: 800;
- cursor: pointer;
- transition: all 0.3s ease;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- margin-bottom: 12px;
- }
- .btn-start {
- background: linear-gradient(135deg, #00C851 0%, #00E676 100%);
- color: white;
- box-shadow: 0 8px 32px rgba(0, 200, 81, 0.4);
- }
- .btn-start:hover {
- transform: translateY(-2px);
- box-shadow: 0 12px 40px rgba(0, 200, 81, 0.5);
- }
- .btn-stop {
- background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
- color: white;
- box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
- display: none;
- }
- .btn-stop.active {
- display: flex;
- }
- .btn-start.hidden {
- display: none;
- }
- /* ģʽѡÔñ */
- .mode-selector {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 8px;
- }
- .mode-btn {
- padding: 12px 8px;
- border: 2px solid rgba(255,255,255,0.1);
- background: transparent;
- border-radius: 12px;
- color: var(--text-secondary);
- font-size: 12px;
- font-weight: 600;
- cursor: pointer;
- transition: all 0.3s ease;
- }
- .mode-btn.active {
- border-color: var(--gold);
- color: var(--gold);
- background: rgba(255, 215, 0, 0.1);
- }
- /* ÈÕÖ¾ÇøÓò */
- .log-section {
- background: var(--bg-card);
- border-radius: 16px;
- padding: 16px;
- }
- .log-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- }
- .log-container {
- background: rgba(0,0,0,0.3);
- border-radius: 12px;
- padding: 12px;
- max-height: 200px;
- overflow-y: auto;
- font-family: 'SF Mono', monospace;
- font-size: 11px;
- line-height: 1.8;
- }
- .log-entry {
- padding: 4px 0;
- border-bottom: 1px solid rgba(255,255,255,0.05);
- display: flex;
- gap: 8px;
- }
- .log-time { color: #666; flex-shrink: 0; }
- .log-success { color: var(--money-green); }
- .log-gold { color: var(--gold); }
- .log-error { color: #FF6B6B; }
- /* ¶¯» */
- @keyframes pulse-gold {
- 0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
- 50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
- }
- .earning {
- animation: pulse-gold 2s infinite;
- }
- /* Toast */
- .toast {
- position: fixed;
- bottom: 100px;
- left: 50%;
- transform: translateX(-50%) translateY(100px);
- background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
- color: #000;
- padding: 16px 32px;
- border-radius: 50px;
- font-weight: 700;
- opacity: 0;
- transition: all 0.3s ease;
- z-index: 9999;
- box-shadow: 0 8px 32px rgba(255, 215, 0, 0.4);
- }
- .toast.show {
- opacity: 1;
- transform: translateX(-50%) translateY(0);
- }
- /* ½ø¶ÈÌõ */
- .progress-bar {
- height: 6px;
- background: rgba(255,255,255,0.1);
- border-radius: 3px;
- overflow: hidden;
- margin-top: 8px;
- }
- .progress-fill {
- height: 100%;
- background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
- border-radius: 3px;
- transition: width 0.5s ease;
- }
- </style>
- </head>
- <body>
- <!-- ½ð±ÒÆ®Âä±³¾° -->
- <div class="coins-rain" id="coinsRain"></div>
- <!-- QQȺÐÅÏ¢±êÌâÀ¸ -->
- <div class="qq-group-bar">
- <span class="qq-group-text">🍎½»Á÷QQȺ£º711841924£¨ÈºÒ»-Æ»¹ûÄÚ²âȺ£© 528816639</span>
- </div>
- <div class="app-container">
- <!-- ¶¥²¿½ð±Òͳ¼Æ -->
- <div class="gold-header">
- <div class="today-earnings">💎 ½ñÈÕÊÕÒæ</div>
- <div class="gold-amount" id="todayGold">0</div>
- <div class="gold-convert">¡Ö ¥<span id="rmbValue">0.00</span> Ôª</div>
- </div>
- <!-- ͳ¼Æ¿¨Æ¬ -->
- <div class="stats-row">
- <div class="stat-box">
- <div class="stat-icon">📺</div>
- <div class="stat-value" id="adCount">0</div>
- <div class="stat-label">¹Û¿´¹ã¸æ</div>
- </div>
- <div class="stat-box">
- <div class="stat-icon">⏱️</div>
- <div class="stat-value" id="runTime">0</div>
- <div class="stat-label">ÔËÐÐ(·Ö)</div>
- </div>
- <div class="stat-box">
- <div class="stat-icon">🎯</div>
- <div class="stat-value" id="successRate">0%</div>
- <div class="stat-label">³É¹¦ÂÊ</div>
- </div>
- </div>
- <!-- ƽ̨Áбí -->
- <div class="platforms-section">
- <div class="section-title">📱 ½ð±Òƽ̨</div>
-
- <div class="platform-card">
- <div class="platform-icon douyin">🎵</div>
- <div class="platform-info">
- <div class="platform-name">¶¶Òô¼«ËÙ°æ</div>
- <div class="platform-status ready" id="status-douyin">✅ ×¼±¸¾ÍÐ÷</div>
- <div class="progress-bar"><div class="progress-fill" id="progress-douyin" style="width: 0%"></div></div>
- </div>
- <div class="platform-earnings">
- <div class="earnings-amount" id="gold-douyin">0</div>
- <div class="earnings-label">½ð±Ò</div>
- </div>
- <label class="switch">
- <input type="checkbox" id="enable-douyin" checked>
- <span class="slider"></span>
- </label>
- </div>
- <div class="platform-card">
- <div class="platform-icon kuaishou">⚡</div>
- <div class="platform-info">
- <div class="platform-name">¿ìÊÖ¼«ËÙ°æ</div>
- <div class="platform-status ready" id="status-kuaishou">✅ ×¼±¸¾ÍÐ÷</div>
- <div class="progress-bar"><div class="progress-fill" id="progress-kuaishou" style="width: 0%"></div></div>
- </div>
- <div class="platform-earnings">
- <div class="earnings-amount" id="gold-kuaishou">0</div>
- <div class="earnings-label">½ð±Ò</div>
- </div>
- <label class="switch">
- <input type="checkbox" id="enable-kuaishou" checked>
- <span class="slider"></span>
- </label>
- </div>
- <div class="platform-card">
- <div class="platform-icon baidu">🔍</div>
- <div class="platform-info">
- <div class="platform-name">°Ù¶È¼«ËÙ°æ</div>
- <div class="platform-status ready" id="status-baidu">✅ ×¼±¸¾ÍÐ÷</div>
- <div class="progress-bar"><div class="progress-fill" id="progress-baidu" style="width: 0%"></div></div>
- </div>
- <div class="platform-earnings">
- <div class="earnings-amount" id="gold-baidu">0</div>
- <div class="earnings-label">½ð±Ò</div>
- </div>
- <label class="switch">
- <input type="checkbox" id="enable-baidu" checked>
- <span class="slider"></span>
- </label>
- </div>
- <div class="platform-card">
- <div class="platform-icon fanqie">📖</div>
- <div class="platform-info">
- <div class="platform-name">·¬ÇÑС˵</div>
- <div class="platform-status ready" id="status-fanqie">✅ ×¼±¸¾ÍÐ÷</div>
- <div class="progress-bar"><div class="progress-fill" id="progress-fanqie" style="width: 0%"></div></div>
- </div>
- <div class="platform-earnings">
- <div class="earnings-amount" id="gold-fanqie">0</div>
- <div class="earnings-label">½ð±Ò</div>
- </div>
- <label class="switch">
- <input type="checkbox" id="enable-fanqie" checked>
- <span class="slider"></span>
- </label>
- </div>
- </div>
- <!-- ¿ØÖÆÃæ°å -->
- <div class="control-panel">
- <button class="main-btn btn-start" id="btnStart" onclick="startHarvest()">
- <span>🚀</span>
- <span>¿ªÊ¼ÊÕ¸î½ð±Ò</span>
- </button>
- <button class="main-btn btn-stop" id="btnStop" onclick="stopHarvest()">
- <span>⏹️</span>
- <span>Í£Ö¹ÊÕ¸î</span>
- </button>
- <div class="mode-selector">
- <button class="mode-btn active" data-mode="smart" onclick="setMode('smart')">
- 🤖 ÖÇÄÜģʽ
- </button>
- <button class="mode-btn" data-mode="aggressive" onclick="setMode('aggressive')">
- ⚡ ¼¤½øÄ£Ê½
- </button>
- <button class="mode-btn" data-mode="safe" onclick="setMode('safe')">
- 🛡️ °²È«Ä£Ê½
- </button>
- </div>
- </div>
- <!-- ÈÕÖ¾ÇøÓò -->
- <div class="log-section">
- <div class="log-header">
- <span class="section-title">📋 ÊÕ¸îÈÕÖ¾</span>
- <button onclick="clearLogs()" style="background: transparent; border: none; color: var(--text-secondary); font-size: 12px; cursor: pointer;">Çå¿Õ</button>
- </div>
- <div class="log-container" id="logContainer">
- <div class="log-entry">
- <span class="log-time">[ϵͳ]</span>
- <span class="log-success">½ð±ÒÊÕ¸î»ú Pro ÒÑÆô¶¯</span>
- </div>
- </div>
- </div>
- </div>
- <!-- Toast -->
- <div class="toast" id="toast"></div>
- <script>
- // ============================================
- // ½ð±ÒÊÕ¸î»ú Pro - ºËÐÄÂß¼
- // ============================================
- const CONFIG = {
- VERSION: '2.0.0',
- GOLD_TO_RMB: 0.0001, // ½ð±ÒתÈËÃñ±Ò±ÈÀý
- AD_WATCH_TIME: 35000, // ¹ã¸æ¹Û¿´Ê±¼ä(ºÁÃë)
- COOLDOWN_TIME: 5000, // Àäȴʱ¼ä
- };
- const state = {
- isRunning: false,
- mode: 'smart',
- todayGold: 0,
- adCount: 0,
- startTime: null,
- platforms: {
- douyin: { enabled: true, gold: 0, status: 'ready', name: '¶¶Òô¼«ËÙ°æ' },
- kuaishou: { enabled: true, gold: 0, status: 'ready', name: '¿ìÊÖ¼«ËÙ°æ' },
- baidu: { enabled: true, gold: 0, status: 'ready', name: '°Ù¶È¼«ËÙ°æ' },
- fanqie: { enabled: true, gold: 0, status: 'ready', name: '·¬ÇÑС˵' }
- }
- };
- // ³õʼ»¯½ð±ÒÓê
- function initCoinRain() {
- const container = document.getElementById('coinsRain');
- const coins = ['💰', '💎', '🪙', '💵', '💴'];
-
- for (let i = 0; i < 20; i++) {
- const coin = document.createElement('div');
- coin.className = 'coin';
- coin.textContent = coins[Math.floor(Math.random() * coins.length)];
- coin.style.left = Math.random() * 100 + '%';
- coin.style.animationDuration = (Math.random() * 5 + 5) + 's';
- coin.style.animationDelay = Math.random() * 5 + 's';
- container.appendChild(coin);
- }
- }
- // Ìí¼ÓÈÕÖ¾
- function addLog(message, type = 'info') {
- const container = document.getElementById('logContainer');
- const time = new Date().toLocaleTimeString('zh-CN', { hour12: false });
- const typeClass = type === 'gold' ? 'log-gold' : type === 'success' ? 'log-success' : type === 'error' ? 'log-error' : '';
-
- const entry = document.createElement('div');
- entry.className = 'log-entry';
- entry.innerHTML = `<span class="log-time">[${time}]</span><span class="${typeClass}">${message}</span>`;
-
- container.insertBefore(entry, container.firstChild);
-
- // ÏÞÖÆÈÕÖ¾ÊýÁ¿
- while (container.children.length > 50) {
- container.removeChild(container.lastChild);
- }
- }
- // ÏÔʾToast
- function showToast(message) {
- const toast = document.getElementById('toast');
- toast.textContent = message;
- toast.classList.add('show');
- setTimeout(() => toast.classList.remove('show'), 3000);
- }
- // ¸üнð±ÒÏÔʾ
- function updateGoldDisplay() {
- document.getElementById('todayGold').textContent = state.todayGold.toLocaleString();
- document.getElementById('rmbValue').textContent = (state.todayGold * CONFIG.GOLD_TO_RMB).toFixed(2);
- document.getElementById('adCount').textContent = state.adCount;
-
- // ¸üÐÂÔËÐÐʱ¼ä
- if (state.startTime) {
- const minutes = Math.floor((Date.now() - state.startTime) / 60000);
- document.getElementById('runTime').textContent = minutes;
- }
-
- // ¸üи÷ƽ̨½ð±Ò
- Object.keys(state.platforms).forEach(key => {
- document.getElementById('gold-' + key).textContent = state.platforms[key].gold;
- });
- }
- // ÉèÖÃģʽ
- function setMode(mode) {
- state.mode = mode;
- document.querySelectorAll('.mode-btn').forEach(btn => {
- btn.classList.toggle('active', btn.dataset.mode === mode);
- });
- addLog(`Çл»µ½${mode === 'smart' ? 'ÖÇÄÜ' : mode === 'aggressive' ? '¼¤½ø' : '°²È«'}ģʽ`, 'info');
- }
- // ¿ªÊ¼ÊÕ¸î
- async function startHarvest() {
- if (state.isRunning) return;
-
- state.isRunning = true;
- state.startTime = Date.now();
-
- document.getElementById('btnStart').classList.add('hidden');
- document.getElementById('btnStop').classList.add('active');
-
- addLog('🚀 ¿ªÊ¼×Ô¶¯ÊÕ¸î½ð±Ò£¡', 'success');
- showToast('🚀 ½ð±ÒÊÕ¸îÒÑÆô¶¯£¡');
-
- // ¿ªÊ¼ÊÕ¸îÑ»·
- harvestLoop();
- }
- // Í£Ö¹ÊÕ¸î
- function stopHarvest() {
- state.isRunning = false;
-
- document.getElementById('btnStart').classList.remove('hidden');
- document.getElementById('btnStop').classList.remove('active');
-
- // ÖØÖÃËùÓÐÆ½Ì¨×´Ì¬
- Object.keys(state.platforms).forEach(key => {
- state.platforms[key].status = 'ready';
- updatePlatformStatus(key, 'ready');
- });
-
- addLog('⏹️ ½ð±ÒÊÕ¸îÒÑÍ£Ö¹', 'info');
- showToast('⏹️ ÒÑÍ£Ö¹ÊÕ¸î');
- }
- // ÊÕ¸îÑ»·
- async function harvestLoop() {
- while (state.isRunning) {
- const enabledPlatforms = Object.keys(state.platforms).filter(key =>
- document.getElementById('enable-' + key).checked
- );
-
- if (enabledPlatforms.length === 0) {
- addLog('⚠️ ÇëÖÁÉÙÑ¡ÔñÒ»¸öƽ̨', 'warning');
- stopHarvest();
- break;
- }
-
- for (const platform of enabledPlatforms) {
- if (!state.isRunning) break;
- await harvestPlatform(platform);
- }
-
- // ¸ù¾Ýģʽµ÷Õû¼ä¸ô
- const interval = state.mode === 'aggressive' ? 2000 : state.mode === 'safe' ? 8000 : 5000;
- await sleep(interval);
- }
- }
- // Êո¸öƽ̨
- async function harvestPlatform(platform) {
- const p = state.platforms[platform];
- p.status = 'running';
- updatePlatformStatus(platform, 'running');
-
- addLog(`📱 ¿ªÊ¼ÊÕ¸î ${p.name}`, 'info');
-
- // Ä£Äâ´ò¿ªÓ¦ÓÃ
- await sleep(1000);
-
- // Ä£Äâ¿´¹ã¸æ¹ý³Ì
- for (let i = 0; i <= 100; i += 10) {
- if (!state.isRunning) break;
- document.getElementById('progress-' + platform).style.width = i + '%';
- await sleep(CONFIG.AD_WATCH_TIME / 10);
- }
-
- // »ñµÃ½ð±Ò½±Àø
- const reward = Math.floor(Math.random() * 500) + 200;
- p.gold += reward;
- state.todayGold += reward;
- state.adCount++;
-
- addLog(`💰 ${p.name} »ñµÃ ${reward} ½ð±Ò£¡`, 'gold');
-
- // ¸üÐÂÏÔʾ
- updateGoldDisplay();
-
- // ÀäÈ´
- p.status = 'cooldown';
- updatePlatformStatus(platform, 'cooldown');
- await sleep(CONFIG.COOLDOWN_TIME);
-
- p.status = 'ready';
- updatePlatformStatus(platform, 'ready');
- document.getElementById('progress-' + platform).style.width = '0%';
- }
- // ¸üÐÂÆ½Ì¨×´Ì¬ÏÔʾ
- function updatePlatformStatus(platform, status) {
- const statusEl = document.getElementById('status-' + platform);
- const texts = {
- ready: '✅ ×¼±¸¾ÍÐ÷',
- running: '⚡ ÕýÔÚÊÕ¸î...',
- cooldown: '⏱️ ÀäÈ´ÖÐ...'
- };
- statusEl.textContent = texts[status];
- statusEl.className = 'platform-status ' + status;
- }
- // Çå¿ÕÈÕÖ¾
- function clearLogs() {
- document.getElementById('logContainer').innerHTML = `
- <div class="log-entry">
- <span class="log-time">[ϵͳ]</span>
- <span class="log-success">ÈÕÖ¾ÒÑÇå¿Õ</span>
- </div>
- `;
- }
- // ¹¤¾ßº¯Êý
- function sleep(ms) {
- return new Promise(resolve => setTimeout(resolve, ms));
- }
- // ³õʼ»¯
- document.addEventListener('DOMContentLoaded', function() {
- initCoinRain();
- updateGoldDisplay();
- addLog('💎 ½ð±ÒÊÕ¸î»ú Pro v' + CONFIG.VERSION + ' ÒѾÍÐ÷', 'success');
- addLog('📱 Ö§³Öƽ̨: ¶¶Òô/¿ìÊÖ/°Ù¶È/·¬ÇÑ', 'info');
- });
- // ¼àÌýƽ̨¿ª¹Ø
- Object.keys(state.platforms).forEach(key => {
- document.getElementById('enable-' + key).addEventListener('change', function() {
- const action = this.checked ? 'ÆôÓÃ' : '½ûÓÃ';
- addLog(`${action} ${state.platforms[key].name}`, 'info');
- });
- });
- </script>
- </body>
- </html>
¸´ÖÆ´úÂë
|
|