2024-03-07, update for cityline.

master
Your Name 2024-03-21 15:42:29 +08:00
parent e3fce97329
commit 2c7e355cdf
6 changed files with 12 additions and 9 deletions

View File

@ -42,7 +42,7 @@ try:
except Exception as exc: except Exception as exc:
pass pass
CONST_APP_VERSION = "MaxBot (2024.03.06)" CONST_APP_VERSION = "MaxBot (2024.03.07)"
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt" CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -23,7 +23,7 @@ import sys
import threading import threading
import webbrowser import webbrowser
CONST_APP_VERSION = "MaxBot (2024.03.06)" CONST_APP_VERSION = "MaxBot (2024.03.07)"
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json" CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -29,7 +29,7 @@ from datetime import datetime
import requests import requests
CONST_APP_VERSION = "MaxBot (2024.03.06)" CONST_APP_VERSION = "MaxBot (2024.03.07)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json" CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"

View File

@ -50,7 +50,7 @@ try:
except Exception as exc: except Exception as exc:
pass pass
CONST_APP_VERSION = "MaxBot (2024.03.06)" CONST_APP_VERSION = "MaxBot (2024.03.07)"
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt" CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -15,14 +15,17 @@ function begin()
} }
// too short to cause error. // too short to cause error.
if(auto_reload_page_interval < 0.3) { if(auto_reload_page_interval < 0.6) {
auto_reload_page_interval = 0.3; auto_reload_page_interval = 0.6;
} }
if(status=='ON') { if(status=='ON') {
let target_interval = auto_reload_page_interval * 1000;
setInterval(() => { setInterval(() => {
retry(); //retry();
}, auto_reload_page_interval * 1000); //console.log("trigger");
$(".btn_cta").prop('disabled', false).trigger("click");
}, target_interval);
} }
} }

View File

@ -413,5 +413,5 @@
] ]
} }
], ],
"version": "1.0.14" "version": "1.0.15"
} }