| | |
| | | response_data = json.dumps({"code": 0, "data": {}}) |
| | | |
| | | elif url.path == "/get_env": |
| | | request_id = params_dict.get("request_id") |
| | | use_time_list = [] |
| | | try: |
| | | __start_time = time.time() |
| | |
| | | response_data = json.dumps(result) |
| | | except Exception as e: |
| | | response_data = json.dumps({"code": 1, "msg": str(e)}) |
| | | logger_debug.error(f"环境获取异常:{request_id}") |
| | | logger_debug.exception(e) |
| | | finally: |
| | | if use_time_list and use_time_list[-1][1] > 10: |
| | | logger_debug.warning(f"环境获取时间大于10s:{use_time_list}") |
| | | logger_debug.warning(f"环境获取时间大于10s({request_id}):{use_time_list}") |
| | | |
| | | elif url.path == "/load_kpl_stock_of_markets_plate": |
| | | # 加载数据 |