This commit is contained in:
@@ -21,7 +21,7 @@ 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']),
|
result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']+f'_{f.filename}'),
|
||||||
file_binary=f.read(),
|
file_binary=f.read(),
|
||||||
bucket='bodyrecord',
|
bucket='bodyrecord',
|
||||||
folder='avatar',
|
folder='avatar',
|
||||||
|
Reference in New Issue
Block a user