fix 115 callback

This commit is contained in:
jxxghp
2025-03-25 19:38:39 +08:00
parent 7f630e8460
commit 57ea50e59c

View File

@@ -407,7 +407,8 @@ class U115Pan(StorageBase, metaclass=Singleton):
上传进度回调
"""
progress = consumed_bytes / total_bytes * 100
logger.info(f"【115】已上传: {consumed_bytes}/{total_bytes} 字节, 进度: {progress:.2f}%")
logger.info(f"【115】已上传: {StringUtils.str_filesize(consumed_bytes)}"
f"/{StringUtils.str_filesize(total_bytes)} 字节, 进度: {progress:.2f}%")
# 计算文件特征值
target_name = new_name or local_path.name