This commit is contained in:
xyj 2024-01-24 15:49:39 +08:00
parent 90a3636ebd
commit 55d146bcdc
1 changed files with 6 additions and 2 deletions

View File

@ -113,8 +113,12 @@ async def register(request: Request):
@app.post("/api/xumu/data/collect") @app.post("/api/xumu/data/collect")
async def process_data(request: Request): async def process_data(request: Request):
# TODO mqtt检测 # TODO mqtt检测
r = await request.body() data = await request.body()
print(r) data = data.decode("utf-8")
data = json.loads(data)
print(data)
return 200 return 200
# try: # try:
# data = await request.body() # data = await request.body()