change: 修改decode响应体
This commit is contained in:
1 parent
1dd2d96eca
commit
28f7b0e9f2
1 file changed
+1
-2
@@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user