feat: 增加async def ticket

This commit is contained in:
caoqianming 2023-09-01 09:39:03 +08:00
parent efa6651748
commit df6fbf500e
1 changed files with 3 additions and 0 deletions

View File

@ -72,3 +72,6 @@ class MyConsumer(AsyncWebsocketConsumer):
async def event(self, content):
await self.send(json.dumps(content, ensure_ascii=False))
async def ticket(self, content):
await self.send(json.dumps(content, ensure_ascii=False))