only update version name, no need to upgrade
parent
467937ea06
commit
73c0b5055e
|
@ -44,7 +44,7 @@ warnings.simplefilter('ignore',InsecureRequestWarning)
|
||||||
#附註1:沒有寫的很好,很多地方應該可以模組化。
|
#附註1:沒有寫的很好,很多地方應該可以模組化。
|
||||||
#附註2:
|
#附註2:
|
||||||
|
|
||||||
CONST_APP_VERSION = u"MaxBot (2021.03.22)"
|
CONST_APP_VERSION = u"MaxBot (2021.11.21)"
|
||||||
|
|
||||||
CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom"
|
CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom"
|
||||||
CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top"
|
CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top"
|
||||||
|
@ -103,12 +103,18 @@ kktix_answer_dictionary_list = None
|
||||||
|
|
||||||
auto_guess_options = False
|
auto_guess_options = False
|
||||||
|
|
||||||
|
debugMode = False
|
||||||
|
|
||||||
if not config_dict is None:
|
if not config_dict is None:
|
||||||
# read config.
|
# read config.
|
||||||
if 'homepage' in config_dict:
|
if 'homepage' in config_dict:
|
||||||
homepage = config_dict["homepage"]
|
homepage = config_dict["homepage"]
|
||||||
if 'browser' in config_dict:
|
if 'browser' in config_dict:
|
||||||
browser = config_dict["browser"]
|
browser = config_dict["browser"]
|
||||||
|
|
||||||
|
# output debug message in client side.
|
||||||
|
if 'debug' in config_dict:
|
||||||
|
debugMode = config_dict["debug"]
|
||||||
|
|
||||||
# default ticket number
|
# default ticket number
|
||||||
# 說明:自動選擇的票數
|
# 說明:自動選擇的票數
|
||||||
|
@ -216,6 +222,7 @@ if not config_dict is None:
|
||||||
print("area_keyword_2", area_keyword_2)
|
print("area_keyword_2", area_keyword_2)
|
||||||
|
|
||||||
print("pass_1_seat_remaining", pass_1_seat_remaining_enable)
|
print("pass_1_seat_remaining", pass_1_seat_remaining_enable)
|
||||||
|
print("debug Mode", debugMode)
|
||||||
|
|
||||||
# entry point
|
# entry point
|
||||||
# 說明:自動開啟第一個的網頁
|
# 說明:自動開啟第一個的網頁
|
||||||
|
@ -3101,6 +3108,9 @@ def main():
|
||||||
answer_index = -1
|
answer_index = -1
|
||||||
kktix_register_status_last = None
|
kktix_register_status_last = None
|
||||||
|
|
||||||
|
if debugMode:
|
||||||
|
print("Start to looping, detect browser url...")
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
@ -3285,6 +3295,8 @@ def main():
|
||||||
'''
|
'''
|
||||||
|
|
||||||
# 說明:輸出目前網址,覺得吵的話,請註解掉這行。
|
# 說明:輸出目前網址,覺得吵的話,請註解掉這行。
|
||||||
|
if debugMode:
|
||||||
|
print("url:", url)
|
||||||
if len(url) > 0 :
|
if len(url) > 0 :
|
||||||
if url != last_url:
|
if url != last_url:
|
||||||
print(url)
|
print(url)
|
||||||
|
|
11
settings.py
11
settings.py
|
@ -16,7 +16,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
|
|
||||||
CONST_APP_VERSION = u"MaxBot (2021.03.22)"
|
CONST_APP_VERSION = u"MaxBot (2021.11.21)"
|
||||||
|
|
||||||
CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom"
|
CONST_FROM_TOP_TO_BOTTOM = u"from top to bottom"
|
||||||
CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top"
|
CONST_FROM_BOTTOM_TO_TOP = u"from bottom to top"
|
||||||
|
@ -355,6 +355,9 @@ def MainMenu(root):
|
||||||
|
|
||||||
pass_1_seat_remaining_enable = False # default not checked.
|
pass_1_seat_remaining_enable = False # default not checked.
|
||||||
|
|
||||||
|
debugMode = False
|
||||||
|
|
||||||
|
|
||||||
global config_dict
|
global config_dict
|
||||||
if not config_dict is None:
|
if not config_dict is None:
|
||||||
# read config.
|
# read config.
|
||||||
|
@ -364,6 +367,9 @@ def MainMenu(root):
|
||||||
if u'browser' in config_dict:
|
if u'browser' in config_dict:
|
||||||
browser = config_dict["browser"]
|
browser = config_dict["browser"]
|
||||||
|
|
||||||
|
if u'debug' in config_dict:
|
||||||
|
debugMode = config_dict["debug"]
|
||||||
|
|
||||||
# default ticket number
|
# default ticket number
|
||||||
# 說明:自動選擇的票數
|
# 說明:自動選擇的票數
|
||||||
ticket_number = "2"
|
ticket_number = "2"
|
||||||
|
@ -440,6 +446,7 @@ def MainMenu(root):
|
||||||
pass_1_seat_remaining_enable = config_dict["tixcraft"]["pass_1_seat_remaining"]
|
pass_1_seat_remaining_enable = config_dict["tixcraft"]["pass_1_seat_remaining"]
|
||||||
|
|
||||||
# output config:
|
# output config:
|
||||||
|
print("version", CONST_APP_VERSION)
|
||||||
print("homepage", homepage)
|
print("homepage", homepage)
|
||||||
print("browser", browser)
|
print("browser", browser)
|
||||||
print("ticket_number", ticket_number)
|
print("ticket_number", ticket_number)
|
||||||
|
@ -467,6 +474,8 @@ def MainMenu(root):
|
||||||
print("area_keyword_2", area_keyword_2)
|
print("area_keyword_2", area_keyword_2)
|
||||||
|
|
||||||
print("pass_1_seat_remaining", pass_1_seat_remaining_enable)
|
print("pass_1_seat_remaining", pass_1_seat_remaining_enable)
|
||||||
|
|
||||||
|
print("debug Mode", debugMode)
|
||||||
else:
|
else:
|
||||||
print('config is none')
|
print('config is none')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue