| | |
| | | global_util.limit_up_time.clear() |
| | | |
| | | # 初始化同花顺主站 |
| | | l2_clients = client_manager.getValidL2Clients() |
| | | for client in l2_clients: |
| | | try: |
| | | server.repair_ths_main_site(client) |
| | | except Exception as e: |
| | | pass |
| | | if constant.L2_SOURCE_TYPE == constant.L2_SOURCE_TYPE_THS: |
| | | l2_clients = client_manager.getValidL2Clients() |
| | | for client in l2_clients: |
| | | try: |
| | | server.repair_ths_main_site(client) |
| | | except Exception as e: |
| | | pass |
| | | |
| | | |
| | | def __run_schedule(): |
| | |
| | | import time |
| | | |
| | | import constant |
| | | import inited_data |
| | | from code_attribute import gpcode_manager |
| | | from l2 import l2_data_manager_new |
| | | from l2.huaxin import huaxin_target_codes_manager |
| | |
| | | logging.exception(e) |
| | | return_str = json.dumps( |
| | | {"code": 1, "msg": str(e)}) |
| | | elif type_ == 'everyday_init': |
| | | # 每日初始化 |
| | | inited_data.everyday_init() |
| | | return_str = json.dumps( |
| | | {"code": 0, "data": {}, "msg": ""}) |
| | | # 查询委托列表 |
| | | elif type_ == 'test': |
| | | # 卖出 |