feat: add logic of avatar image uploading 2
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
be587a216e
commit
92d0e2a3cb
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue