update
This commit is contained in:
parent
7c13b0cb57
commit
d4582a7cda
3
main.py
3
main.py
|
@ -113,7 +113,8 @@ 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检测
|
||||||
|
print(request.body())
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
data = await request.body()
|
data = await request.body()
|
||||||
data = data.decode("utf-8")
|
data = data.decode("utf-8")
|
||||||
|
|
Loading…
Reference in New Issue