feat: get_tyy_data 不更新的bug

This commit is contained in:
caoqianming 2025-06-09 10:09:32 +08:00
parent 27b225face
commit b9cad6bbd8
1 changed files with 2 additions and 1 deletions

View File

@ -64,9 +64,10 @@ def get_tyy_data(*args):
cd_thread_key = f"cd_thread_{host}_{port}"
cd_thread_val = cache.get(cd_thread_key, default=None)
if cd_thread_val is None:
cache.set(cd_thread_key, "get")
cache.set(cd_thread_key, "start")
cd_thread = MyThread(target=get_tyy_data_t, args=(host, port), daemon=True)
cd_thread.start()
cache.set(cd_thread_key, "get")
num = 0
while True:
num += 1