H Vs 2 mesi fa
parent
commit
61d2314829
1 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. +3
    -6
      resources/login_resources.py

+ 3
- 6
resources/login_resources.py Vedi File

@@ -121,16 +121,13 @@ def waitting_login_result(wxchat:gewe_chat.GeWeChatCom, token_id, app_id,region_
login_info.update({"create_at":int(time.time()),"modify_at":int(time.time())})
else:
login_info.update({"modify_at":int(time.time())})
# if 'appId' in cache_login_info:
# login_info.update({"reg_time":datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3],"login_time":datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]})
# else:
# login_info.update({"login_time":datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f")[:-3]})

cleaned_login_info = {k: (v if v is not None else '') for k, v in login_info.items()}
redis_helper.redis_helper.set_hash(hash_key, cleaned_login_info)
wxchat.release_login_lock(token_id)
# 默认配置
# 默认配置
config=Models.AgentConfig.model_validate({
"chatroomIdWhiteList": [],
"agentTokenId": agent_token_id,


Loading…
Annulla
Salva