From e031a373a187c0b16283d20f2b112f343556801a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BC=9F?= <250213850@qq.com> Date: Tue, 13 Sep 2022 15:33:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8A=E4=BC=A0=E5=8D=8E=E4=B8=BA=E4=BA=91?= =?UTF-8?q?=E5=A4=B4=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api_v1/endpoints/interview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api_v1/endpoints/interview.py b/api/api_v1/endpoints/interview.py index d38431f..5eec949 100644 --- a/api/api_v1/endpoints/interview.py +++ b/api/api_v1/endpoints/interview.py @@ -1818,11 +1818,11 @@ async def head_to_hw( return schemas.Msg(code=400, msg='上传文件有误', data=None) try: # 头像正常上传到华为云 - res = obsClient.putFile('legu-cdn-source', 'hrms/user_icon' + filename, path_data + '/' + filename) + res = obsClient.putFile('legu-cdn-source', 'hrms/user_icon/' + filename, path_data + '/' + filename) if res.status < 300: # 地址 url = res.body.objectUrl - resData = {'file_url': url, 'filename': 'hrms/user_icon' + filename, 'uid': data_in.uid} + resData = {'file_url': url, 'filename': 'hrms/user_icon/' + filename, 'uid': data_in.uid} sql=f""" ALTER TABLE HR.resumes update head = '{url}' WHERE uid = '{data_in.uid}' """