This commit is contained in:
yumoqing 2026-03-02 20:06:10 +08:00
parent 139e344d23
commit 3b5c2cf836

View File

@ -43,7 +43,7 @@ async def run_zmq_proxy(app):
task.cancel()
async def msg_handler(msgstr):
debug('get message:{msgstr}')
debug(f'get message:{msgstr}')
msg = DictObject(**json.loads(msgstr))
ret = {
"msgtype": "text", # 要返回的消息类型
@ -54,7 +54,7 @@ async def msg_handler(msgstr):
async def woa_msghande():
config = getConfig()
debug('woa_msghander on({config.woa_handler_id}) starting ....')
debug(f'woa_msghander on({config.woa_handler_id}) starting ....')
await zmq_subscribe(config.woa_handler_id, msg_handler)
debug('woa_msghandler stopped.................')