update
This commit is contained in:
parent
0a3aea565d
commit
3030eb158d
@ -132,15 +132,6 @@ async def check_tryon_status(
|
||||
tryon_history.status = TryonStatus.COMPLETED
|
||||
tryon_history.completion_url = url
|
||||
await db.commit()
|
||||
await db.refresh(tryon_history)
|
||||
|
||||
return StandardResponse(code=200, message="检查试穿状态成功", data={
|
||||
"history_id": tryon_history.id,
|
||||
"status": tryon_history.status,
|
||||
"completion_url": url
|
||||
})
|
||||
else:
|
||||
return StandardResponse(code=200, message="检查试穿状态成功", data={
|
||||
"history_id": tryon_history.id,
|
||||
"status": tryon_history.status,
|
||||
"completion_url": tryon_history.completion_url
|
||||
})
|
||||
return StandardResponse(code=200, message="检查试穿状态成功", data=TryonHistoryModel.model_validate(tryon_history))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user