diff --git a/util/smb_tool.py b/util/smb_tool.py index 7579b8f..8044451 100644 --- a/util/smb_tool.py +++ b/util/smb_tool.py @@ -769,9 +769,12 @@ def get_conf(zip_url, user_name, pwd) : dir = '/'.join(new_parts) excel_dir = '' + excel_dir = '/'.join(parts[2:3]) for index, part in enumerate(parts, 0) : - if part == 'Images' and index - 3 > 2 : - excel_dir = '/'.join(parts[2:index-3]) + if part == 'Images' and index - 2 > 2 : + excel_dir = '/'.join(parts[2:index-2]) + if part == '图像类' and index > 2 : + excel_dir = '/'.join(parts[2:index]) # 配置信息 @@ -992,6 +995,7 @@ def main(): # 配置数据提取 tmp_conf = get_conf("192.168.110.114/share_File/北碚报送数据/3.25/图像类/C071500109B/Images",'administrator','abc@1234') + tmp_conf = get_conf("192.168.110.114/share_File/数据识别/5、报送导出2025年/万盛图像类/图像类",'administrator','abc@1234') # 创建扫描器 scanner = SMBScanner(