|
@@ -783,14 +783,13 @@ async def create_contact(
|
|
|
if len(filename) == 0:
|
|
|
raise Exception()
|
|
|
|
|
|
- file_name = filename[0]['url']
|
|
|
- file_path = f'/data/upload/mergefile/uploads/{file_name}'
|
|
|
+ file_path = f'/data/upload/mergefile/uploads/{filename}'
|
|
|
|
|
|
# 检查文件是否存在
|
|
|
if not os.path.isfile(file_path):
|
|
|
return JSONResponse(status_code=404, content={
|
|
|
'errcode': 404,
|
|
|
- 'errmsg': f'{file_name}不存在'
|
|
|
+ 'errmsg': f'{filename}不存在'
|
|
|
})
|
|
|
|
|
|
new_file = ThreeProofingResponsiblePersonImportFileStatus(
|