change: 修改decode响应体

This commit is contained in:
cancerai committed 2026-09-28 22:23:59 +08:00
1 parent 1dd2d96eca
commit 28f7b0e9f2
1 file changed
+1 -2
+1 -2
View File
@@ -50,8 +50,7 @@ async def extract_watermark(image: UploadFile = File(...)):
payload, has_watermark, schema = tm.decode(img) payload, has_watermark, schema = tm.decode(img)
return JSONResponse({ return JSONResponse({
"success": True, "hasWatermark": has_watermark,
"has_watermark": has_watermark,
"payload": payload if has_watermark else None, "payload": payload if has_watermark else None,
"schema": schema if has_watermark else None "schema": schema if has_watermark else None
}) })