共享目录调整配置处理逻辑

This commit is contained in:
liyubo 2026-03-11 09:48:00 +08:00
parent bd8ec3f853
commit 53b9830968

View File

@ -769,7 +769,7 @@ def get_conf(zip_url, user_name, pwd) :
dir = '/'.join(new_parts)
excel_dir = ''
excel_dir = '/'.join(parts[2:3])
excel_dir = '/'.join(parts[2:])
for index, part in enumerate(parts, 0) :
if part == 'Images' and index - 2 > 2 :
excel_dir = '/'.join(parts[2:index-2])
@ -994,8 +994,9 @@ 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')
tmp_conf = get_conf("192.168.110.114/share_File/北碚报送数据/3.25/图像类/C071500109B/Images",'administrator','abc@1234')
# 创建扫描器
scanner = SMBScanner(