2023-01-12, bugs fixed.

master
CHUN YU YAO 2023-01-12 01:36:29 +08:00
parent ad14b98fc7
commit 6a99977414
2 changed files with 7 additions and 4 deletions

View File

@ -48,7 +48,7 @@ except Exception as exc:
import ssl import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = u"MaxBot (2023.01.10)" CONST_APP_VERSION = u"MaxBot (2023.01.12)"
CONST_HOMEPAGE_DEFAULT = "https://tixcraft.com" CONST_HOMEPAGE_DEFAULT = "https://tixcraft.com"
@ -1661,14 +1661,17 @@ def tixcraft_auto_ocr(driver, ocr):
orc_answer = ocr.classification(img_base64) orc_answer = ocr.classification(img_base64)
except Exception as exc: except Exception as exc:
pass pass
else:
print("ddddocr is None")
if not orc_answer is None: if not orc_answer is None:
print("orc_answer:", orc_answer) print("orc_answer:", orc_answer)
if len(orc_answer)==4: if len(orc_answer)==4:
tixcraft_manully_keyin_verify_code(driver, orc_answer) tixcraft_manully_keyin_verify_code(driver, orc_answer)
else: else:
tixcraft_manully_keyin_verify_code(driver, "") tixcraft_manully_keyin_verify_code(driver)
else:
tixcraft_manully_keyin_verify_code(driver)
def tixcraft_ticket_main(driver, config_dict, ocr): def tixcraft_ticket_main(driver, config_dict, ocr):
is_finish_checkbox_click = False is_finish_checkbox_click = False

View File

@ -19,7 +19,7 @@ import json
import webbrowser import webbrowser
import pyperclip import pyperclip
CONST_APP_VERSION = u"MaxBot (2023.01.11)" CONST_APP_VERSION = u"MaxBot (2023.01.12)"
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"