test:test

This commit is contained in:
dqy 2023-10-26 11:04:25 +08:00
parent 332841a8d7
commit 0fc39b36a2
2 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,3 @@
[settings] [settings]
server_address = 110.41.155.96:8000 server_address = 60.204.236.38:8000
version = 1.0 version = 1.0

View File

@ -18,7 +18,7 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan) app = FastAPI(lifespan=lifespan)
server_address = "http://110.41.155.96:8000/server" server_address = "http://60.204.236.38:8000/server"
id = 0 id = 0
ip = "" ip = ""
client_ip_src = "" # 发送信息用户的ip client_ip_src = "" # 发送信息用户的ip
@ -114,7 +114,7 @@ async def send_user_des_message(source_ip: str, dest_ip: str, re_message): #
response = requests.post( response = requests.post(
"http://" + dest_ip + ":8002" + "/receive_messages", json=data "http://" + dest_ip + ":8002" + "/receive_messages", json=data
) )
print("send stauts:" ,response.text) print("send stauts:", response.text)
if __name__ == "__main__": if __name__ == "__main__":