def use_port(self, log): ''' 调取打码平台接口 :return: ''' try: # import rk_python3 get_data = rk_python3.identify('{}screenshot_{}{}.png'.format(self.img_path, 'normal_account',str(self.skip_count))) self.handle_auth(get_data, log) except Exception as e: log.info("[ERROR]: {}".format(e)) log.info("验证码接口调用失败")
def use_port(self): ''' 调取打码平台接口 :return: ''' try: import rk_python3 get_data = rk_python3.identify('{}screenshot_{}.png'.format(self.img_path, 'down_report')) self.handle_auth(get_data) except Exception as e: print("[ERROR]: {}".format(e)) print("验证码接口调用失败")
def use_port(self): ''' 调取打码平台接口 :return: ''' try: import rk_python3 get_data = rk_python3.identify('{}screenshot_{}.png'.format( self.img_path, 'limit_condition')) self.handle_auth(get_data) except Exception as e: log.info("[ERROR]: {}".format(e)) log.info("验证码接口调用失败")
def use_port(self): ''' 调取打码平台接口 :return: ''' try: # import rk_python3 get_data = rk_python3.identify('{}screenshot_{}{}.png'.format( self.img_path, 'normal_account', str(self.skip_count))) return self.handle_auth(get_data) except Exception as e: self.log.error(e) self.log.error("验证码接口调用失败")