from asgiref.sync import async_to_sync from ... 启用了channel layer之后,所有与consumer之间的通信将会变成异步的,所以必须使用 async_to_sync.
確定! 回上一頁