# encoding:utf-8 import json import math import re import traceback import uuid import requests import time import logging from Service.AccountService import AccountException from Utils import log_utils, exception_utils import Conf logger = log_utils.Log('log/debug.log', logging.DEBUG).logger dynamic_conf = Conf.Dynamic_conf() class AutoUpdater(): def __init__(self): # self.ip_port = Conf.ip_port self.ip_port_list = [dynamic_conf.ip_port_1, dynamic_conf.ip_port_2] self.account = dynamic_conf.account self.password = dynamic_conf.password self.proxy_filt_path = dynamic_conf.proxy_filt_path self.proxy_type = Conf.proxy_type self.headers = Conf.headers def reload(self): ''' 重新加载配置文件