fix: upload api
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-08-16 15:34:25 +08:00
parent 7675d48483
commit 4d637d5886
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ api = APIBlueprint('api', __name__)
def wechat_login(files_data):
f = files_data['image']
try:
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']),
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']+f'_{f.filename}'),
file_binary=f.read(),
bucket='bodyrecord',
folder='avatar',