From addf7af11479aad3f9d4263b203f0620773b0787 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Sun, 10 Sep 2023 09:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E9=83=A8=E5=88=86=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E6=8E=A8=E9=80=81=EF=BC=8C=E6=8F=90=E9=AB=98=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=88=90=E5=8A=9F=E7=8E=87=20=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E5=A4=87=E7=94=A8=E6=8E=A8=E9=80=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/server.py b/server.py index 3f0fa68..916ab51 100755 --- a/server.py +++ b/server.py @@ -62,18 +62,18 @@ _{datetime.datetime.now()}_ "description": description, "content": c, "token": "tt"}) - print("nmhd",res) - try: - res = res.json() - except: - s="http://push.nmhd.eu.org:12722/push/murmur" - # s="http://47.108.213.155:11722/push/murmur" - res = requests.post(s, json={ - "title": title, - "description": description, - "content": c, - "token": "tt"}) - print("msgpusher",s) + print("msgpusher",res) + # try: + # res = res.json() + # except: + # s="http://push.nmhd.eu.org:12722/push/murmur" + # # s="http://47.108.213.155:11722/push/murmur" + # res = requests.post(s, json={ + # "title": title, + # "description": description, + # "content": c, + # "token": "tt"}) + # print("nmhd",s) # else: # if res["success"]: # return None @@ -411,7 +411,7 @@ class MyServer(socketserver.BaseRequestHandler): add_timestamp() t=f"TCP客户端{str(self.client_address)}已连接,等待上报心跳注册ccid。" print(t) - s2wx("天通消息","TCP客户端接入",t) + # s2wx("天通消息","TCP客户端接入",t) conn = self.request # print(type(conn),conn.fd) @@ -430,7 +430,7 @@ class MyServer(socketserver.BaseRequestHandler): t = f"从{str(self.client_address)}<->[{get_ccid(conn).decode() if get_ccid(conn) else 'None'}]接收到新数据,长度{len(data)}字节。" print(t) print(data.hex(" ")) - s2wx("","",t) + # s2wx("","",t) print("--",len(self.recDataBuff)) print(self.recDataBuff[:]) if tt_decode(conn, data): @@ -453,7 +453,7 @@ CCID:{pp[self.request].decode()} else: t= f"TCP客户端{str(self.client_address)}已断开连接。{self.err}" print(t) - s2wx("天通消息","TCP客户端断开",t) + # s2wx("天通消息","TCP客户端断开",t)