master
CHUN YU YAO 2024-04-05 01:27:01 +08:00
parent 85e36a4149
commit d90094e3bc
3 changed files with 8 additions and 3 deletions

View File

@ -142,9 +142,11 @@ def get_config_dict(args):
if not args.homepage is None: if not args.homepage is None:
if len(args.homepage) > 0: if len(args.homepage) > 0:
config_dict["homepage"] = args.homepage config_dict["homepage"] = args.homepage
if not args.ticket_number is None: if not args.ticket_number is None:
if args.homepage > 0: if args.ticket_number > 0:
config_dict["ticket_number"] = args.ticket_number config_dict["ticket_number"] = args.ticket_number
if not args.browser is None: if not args.browser is None:
if len(args.browser) > 0: if len(args.browser) > 0:
config_dict["browser"] = args.browser config_dict["browser"] = args.browser
@ -152,6 +154,7 @@ def get_config_dict(args):
if not args.tixcraft_sid is None: if not args.tixcraft_sid is None:
if len(args.tixcraft_sid) > 0: if len(args.tixcraft_sid) > 0:
config_dict["advanced"]["tixcraft_sid"] = args.tixcraft_sid config_dict["advanced"]["tixcraft_sid"] = args.tixcraft_sid
if not args.ibonqware is None: if not args.ibonqware is None:
if len(args.ibonqware) > 0: if len(args.ibonqware) > 0:
config_dict["advanced"]["ibonqware"] = args.ibonqware config_dict["advanced"]["ibonqware"] = args.ibonqware

View File

@ -125,9 +125,11 @@ def get_config_dict(args):
if not args.homepage is None: if not args.homepage is None:
if len(args.homepage) > 0: if len(args.homepage) > 0:
config_dict["homepage"] = args.homepage config_dict["homepage"] = args.homepage
if not args.ticket_number is None: if not args.ticket_number is None:
if args.homepage > 0: if args.ticket_number > 0:
config_dict["ticket_number"] = args.ticket_number config_dict["ticket_number"] = args.ticket_number
if not args.browser is None: if not args.browser is None:
if len(args.browser) > 0: if len(args.browser) > 0:
config_dict["browser"] = args.browser config_dict["browser"] = args.browser

View File

@ -1869,7 +1869,7 @@ def kktix_get_registerStatus(event_code):
print("send reg_info request fail:") print("send reg_info request fail:")
print(exc) print(exc)
registerStatus = None registerStatus = ""
if not html_result is None: if not html_result is None:
status_code = html_result.status_code status_code = html_result.status_code
#print("status_code:",status_code) #print("status_code:",status_code)