| | |
| | | # 计算范围到申报时间的那一秒 |
| | | import json |
| | | import logging |
| | | import random |
| | | import time |
| | | |
| | | import constant |
| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(SecondCancelBigNumComputer, cls).__new__(cls, *args, **kwargs) |
| | | time.sleep(random.randint(0, 2000) / 1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |
| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(HourCancelBigNumComputer, cls).__new__(cls, *args, **kwargs) |
| | | time.sleep(random.randint(0, 2000) / 1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |
| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(DCancelBigNumComputer, cls).__new__(cls, *args, **kwargs) |
| | | time.sleep(random.randint(0, 2000) / 1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |
| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(LCancelBigNumComputer, cls).__new__(cls, *args, **kwargs) |
| | | time.sleep(random.randint(0, 2000) / 1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |
| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(FastCancelBigNumComputer, cls).__new__(cls, *args, **kwargs) |
| | | time.sleep(random.randint(0, 2000) / 1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |
| | |
| | | def __new__(cls, *args, **kwargs): |
| | | if not cls.__instance: |
| | | cls.__instance = super(LatestCancelIndexManager, cls).__new__(cls, *args, **kwargs) |
| | | time.sleep(random.randint(0, 2000) / 1000) |
| | | cls.__load_datas() |
| | | return cls.__instance |
| | | |