bugfix
This commit is contained in:
parent
f804de7752
commit
9702b47015
@ -36,9 +36,7 @@ __version__ = '0.0.1'
|
||||
async def run_zmq_proxy(app):
|
||||
task = asyncio.create_task(run_proxy())
|
||||
app['zmq_proxy_task'] = task
|
||||
print('TTTTTTTTTTTTTTTTTT')
|
||||
task1 = asyncio.create_task(woa_msghande())
|
||||
print('KKKKKKKKKKKKKKKKKK')
|
||||
yield
|
||||
task1.cancel()
|
||||
task.cancel()
|
||||
@ -48,6 +46,7 @@ async def woa_msghande():
|
||||
config = getConfig()
|
||||
while True:
|
||||
msgstr = await zmq_subscribe(config.woa_handler_id)
|
||||
debug(f'收到sage转发微信信息:{msgstr}, {type(msgstr)}')
|
||||
msgdic = json.loads(msgstr)
|
||||
# 这里按照业务逻辑处理收到的msg
|
||||
debug(f'received wechat msgs={msgstr}')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user