Skip to content

Commit 5eec466

Browse files
author
lan-air
committed
修复取件问题
1 parent b273d38 commit 5eec466

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,11 @@ async def index(request: Request, code: str, db: Session = Depends(get_db)):
154154
threading.Thread(target=delete_file, args=([{'type': info.type, 'text': info.text}],)).start()
155155
db.delete(info)
156156
db.commit()
157-
return {'code': 200, 'msg': '取件成功,请点击"取"查看', 'data': info}
157+
return {
158+
'code': 200,
159+
'msg': '取件成功,请点击"取"查看',
160+
'data': {'type': info.type, 'text': info.text, 'name': info.name, 'code': info.code}
161+
}
158162

159163

160164
@app.post('/share')

0 commit comments

Comments
 (0)