fix: upload api 2
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4d637d5886
commit
d989a617f4
|
@ -21,9 +21,9 @@ api = APIBlueprint('api', __name__)
|
||||||
def wechat_login(files_data):
|
def wechat_login(files_data):
|
||||||
f = files_data['image']
|
f = files_data['image']
|
||||||
try:
|
try:
|
||||||
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']+f'_{f.filename}'),
|
result = rpc.storage.upload(file_name=str(session['user_id']+f'_{f.filename}'),
|
||||||
file_binary=f.read(),
|
file_binary=f.read(),
|
||||||
bucket='bodyrecord',
|
bucket='',
|
||||||
folder='avatar',
|
folder='avatar',
|
||||||
app='bodyrecord')
|
app='bodyrecord')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue