mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-19 21:07:28 +08:00
fix: on_close params
This commit is contained in:
@@ -178,12 +178,11 @@ class ReplyItem:
|
|||||||
|
|
||||||
# 收到websocket错误的处理
|
# 收到websocket错误的处理
|
||||||
def on_error(ws, error):
|
def on_error(ws, error):
|
||||||
|
|
||||||
logger.error("[XunFei] error:", error)
|
logger.error("[XunFei] error:", error)
|
||||||
|
|
||||||
|
|
||||||
# 收到websocket关闭的处理
|
# 收到websocket关闭的处理
|
||||||
def on_close(ws):
|
def on_close(ws, one, two):
|
||||||
data_queue = queue_map.get(ws.session_id)
|
data_queue = queue_map.get(ws.session_id)
|
||||||
data_queue.put("END")
|
data_queue.put("END")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user