This commit is contained in:
dongchangxi committed 2025-02-03 13:46:50 +08:00
1 parent d9769e54fb
commit 23eb4457f8
1 file changed
+3 -2
+3 -2
View File
@@ -69,7 +69,7 @@ def cal_weight(obj, size):
print(f'{size/10}cm:体积 {model_info["volume"]}cm³, 克重 {model_info["weight"]}g')
return model_info["weight"]
def main(action, pid, sizes,orderId=0):
def main(action, pid, sizes,realHeight,orderId=0):
print(f"下载{pid},{action}")
libs.down_obj_from_oss(config.workdir, pid, action)
obj = reload_obj(pid, action)
@@ -81,6 +81,7 @@ def main(action, pid, sizes,orderId=0):
df = pd.read_excel(excel_file)
new_data = {
'pid': [pid], # 假设新的 pid 是 '002'
'真实身高': [realHeight],
'1/4尺寸': [0],
'1/4': [0],
'1/6尺寸': [0],
@@ -186,4 +187,4 @@ if __name__ == '__main__':
print(sizes)
# break
main("print", str(pid), sizes)
main("print", str(pid), sizes,realHeight)