diff --git a/app/api/v1/api.py b/app/api/v1/api.py index aedddb5..da104ac 100644 --- a/app/api/v1/api.py +++ b/app/api/v1/api.py @@ -18,8 +18,8 @@ api = APIBlueprint('api', __name__) @api.doc(summary='上传图片', description='上传图片') @api.input(ImageIn, location='files') @login_required -def wechat_login(files): - f = files['image'] +def wechat_login(files_data): + f = files_data['image'] try: result = rpc.storage.upload(file_name='avatar_' + str(session['user_id']), file_binary=f.stream,