def __init__(self, config_path="config.yaml"): self.browser = Browser() self.dutys = "" self.refresh_time = '' self.verify_url = "http://www.114yygh.com/web/verify" self.login_url = "http://www.114yygh.com/web/login" self.send_code_url = "http://www.114yygh.com/web/getVerifyCode" self.duty_url = "http://www.114yygh.com/web/product/detail" self.confirm_url = "http://www.114yygh.com/web/order/saveOrder" self.patient_id_url = "http://www.114yygh.com/order/confirm/" self.query_hospital_url = "http://www.114yygh.com/web/queryHospitalById" self.calendar = "http://www.114yygh.com/web/product/list" self.order_patient_list = "http://www.114yygh.com/web/patient/orderPatientList" self.appoint_info_url = "http://www.114yygh.com/web/order/getAppointInfo" self.config = Config(config_path) # config对象 if self.config.useIMessage == 'true': # 按需导入 imessage.py import imessage self.imessage = imessage.IMessage() else: self.imessage = None if self.config.useQPython3 == 'true': try: # Android QPython3 验证 # 按需导入 qpython3.py import qpython3 self.qpython3 = qpython3.QPython3() except ModuleNotFoundError: self.qpython3 = None else: self.qpython3 = None
def __init__(self, config_path="config.yaml"): self.browser = Browser() self.dutys = "" self.refresh_time = '' self.login_url = "http://www.bjguahao.gov.cn/quicklogin.htm" self.send_code_url = "http://www.bjguahao.gov.cn/v/sendorder.htm" self.get_doctor_url = "http://www.bjguahao.gov.cn/dpt/partduty.htm" self.confirm_url = "http://www.bjguahao.gov.cn/order/confirm.htm" self.patient_id_url = "http://www.bjguahao.gov.cn/order/confirm/" self.department_url = "http://www.bjguahao.gov.cn/dpt/appoint/" self.config = Config(config_path) # config对象 if self.config.useIMessage == 'true': # 按需导入 imessage.py import imessage self.imessage = imessage.IMessage() else: self.imessage = None if self.config.useQPython3 == 'true': try: # Android QPython3 验证 # 按需导入 qpython3.py import qpython3 self.qpython3 = qpython3.QPython3() except ModuleNotFoundError: self.qpython3 = None else: self.qpython3 = None
def __init__(self, config_path="config.yaml", preflight_sms_code=None): self.browser = Browser() self.dutys = "" self.refresh_time = '' self.login_url = "http://www.114yygh.com/quicklogin.htm" self.send_code_url = "http://www.114yygh.com/v/sendorder.htm" self.get_doctor_url = "http://www.114yygh.com/dpt/partduty.htm" self.get_doctor_url_v2 = "http://www.114yygh.com/dpt/build/duty.htm" self.confirm_url = "http://www.114yygh.com/order/confirmV1.htm" self.patient_id_url = "http://www.114yygh.com/order/confirm/" self.department_url = "http://www.114yygh.com/dpt/appoint/" self.cache_select_doctor_v2 = { 'request_time': 0.0, 'cached_response': None } self.config = Config(config_path) # config对象 if self.config.useIMessage == 'true': # 按需导入 imessage.py import imessage self.imessage = imessage.IMessage() else: self.imessage = None if self.config.useQPython3 == 'true': try: # Android QPython3 验证 # 按需导入 qpython3.py import qpython3 self.qpython3 = qpython3.QPython3() except ModuleNotFoundError: self.qpython3 = None else: self.qpython3 = None self.preflight_sms_code = preflight_sms_code