File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/common/handle/impl/text Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,19 +85,19 @@ def get_image_list(result_list: list, zip_files: List[str]):
8585 if not zip_files .__contains__ (image_path ):
8686 continue
8787 if image_path .startswith ('oss/file/' ) or image_path .startswith ('oss/image/' ):
88- image_id = image_path .replace ('oss/file/' , '' ).replace ('oss/image /' , '' )
88+ image_id = image_path .replace ('oss/file/' , '' ).replace ('oss/file /' , '' )
8989 if is_valid_uuid (image_id ):
9090 image_file_list .append ({'source_file' : image_path ,
9191 'image_id' : image_id })
9292 else :
9393 image_file_list .append ({'source_file' : image_path ,
9494 'image_id' : new_image_id })
95- content = content .replace (source_image_path , f'/oss/image /{ new_image_id } ' )
95+ content = content .replace (source_image_path , f'/oss/file /{ new_image_id } ' )
9696 p ['content' ] = content
9797 else :
9898 image_file_list .append ({'source_file' : image_path ,
9999 'image_id' : new_image_id })
100- content = content .replace (source_image_path , f'/oss/image /{ new_image_id } ' )
100+ content = content .replace (source_image_path , f'/oss/file /{ new_image_id } ' )
101101 p ['content' ] = content
102102
103103 return image_file_list
You can’t perform that action at this time.
0 commit comments