瀏覽代碼

auto commit

master
jfinn 2 年之前
父節點
當前提交
be0b875bbd
共有 1 個檔案被更改,包括 0 行新增3 行删除
  1. 0
    3
      wsps/consumers.py

+ 0
- 3
wsps/consumers.py 查看文件

13
 	async def ws_rec_once(self, text_data):
13
 	async def ws_rec_once(self, text_data):
14
 		# print("WS~~ 12")
14
 		# print("WS~~ 12")
15
 		msg_data = json.loads(text_data) 
15
 		msg_data = json.loads(text_data) 
16
-		# if 'message' in text_data_json:
17
-
18
 		if "key" in msg_data:
16
 		if "key" in msg_data:
19
 			key = "jm_" + msg_data["key"] 
17
 			key = "jm_" + msg_data["key"] 
20
-			# key = "j_" + msg_data["key"] 
21
 			mthd = getattr(self,key,None)
18
 			mthd = getattr(self,key,None)
22
 			if mthd:
19
 			if mthd:
23
 				await mthd(msg_data) 
20
 				await mthd(msg_data) 

Loading…
取消
儲存