2023-09-15, add content refresh condition for hkticketing.

master
CHUN YU YAO 2023-10-10 14:41:32 +08:00
parent 9644837664
commit e2d60fc9cf
4 changed files with 7 additions and 4 deletions

View File

@ -55,7 +55,7 @@ import webbrowser
import chromedriver_autoinstaller import chromedriver_autoinstaller
CONST_APP_VERSION = "MaxBot (2023.09.14)" CONST_APP_VERSION = "MaxBot (2023.09.15)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
@ -9237,6 +9237,9 @@ def hkticketing_content_refresh(driver, url, config_dict):
, "Cannot generate SSPI context" , "Cannot generate SSPI context"
, "System.Data.SqlClient.Sql" , "System.Data.SqlClient.Sql"
, "System.ComponentModel.Win32Exception" , "System.ComponentModel.Win32Exception"
, "Access Denied"
, "Your attempt to access the web site has been blocked by"
, "This requset was blocked by"
] ]
if is_check_access_deined: if is_check_access_deined:
domain_name = url.split('/')[2] domain_name = url.split('/')[2]

View File

@ -22,7 +22,7 @@ import base64
import threading import threading
import subprocess import subprocess
CONST_APP_VERSION = "MaxBot (2023.09.14)" CONST_APP_VERSION = "MaxBot (2023.09.15)"
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

@ -35,7 +35,7 @@ import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = "MaxBot (2023.09.14)" CONST_APP_VERSION = "MaxBot (2023.09.15)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"

View File

@ -28,7 +28,7 @@ import asyncio
import tornado import tornado
from tornado.web import Application from tornado.web import Application
CONST_APP_VERSION = "MaxBot (2023.09.14)" CONST_APP_VERSION = "MaxBot (2023.09.15)"
CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt" CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"