mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
fix: 只有一个apikey并过期切换时不停输出apikey值
This commit is contained in:
@@ -53,7 +53,7 @@ class KeysManager:
|
||||
return True, key_name
|
||||
|
||||
self.using_key = list(self.api_key.values())[0]
|
||||
logging.info("使用api-key:" + self.using_key)
|
||||
logging.info("使用api-key:" + self.api_key.keys()[0])
|
||||
|
||||
return False, ""
|
||||
|
||||
|
||||
@@ -113,7 +113,6 @@ class QQBotManager:
|
||||
|
||||
# 私聊消息处理
|
||||
def on_person_message(self, event: MessageEvent):
|
||||
global processing
|
||||
|
||||
reply = ''
|
||||
|
||||
@@ -144,7 +143,6 @@ class QQBotManager:
|
||||
|
||||
# 群消息处理
|
||||
def on_group_message(self, event: GroupMessage):
|
||||
global processing
|
||||
|
||||
reply = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user