修复取件问题

This commit is contained in:
lan-air
2022-12-10 23:47:36 +08:00
parent b273d38b31
commit 5eec46605b
+5 -1
View File
@@ -154,7 +154,11 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
threading.Thread(target=delete_file, args=([{'type': info.type, 'text': info.text}],)).start()
db.delete(info)
db.commit()
return {'code': 200, 'msg': '取件成功,请点击""查看', 'data': info}
return {
'code': 200,
'msg': '取件成功,请点击""查看',
'data': {'type': info.type, 'text': info.text, 'name': info.name, 'code': info.code}
}
@app.post('/share')