Browse Source

构建修模obj 下错文件处理

master
dongchangxi 5 months ago
parent
commit
2eb06ced91
  1. 8
      apps/auto_convert3d_new.py

8
apps/auto_convert3d_new.py

@ -55,11 +55,19 @@ def down_obj_fromoss(pid,order_id): @@ -55,11 +55,19 @@ def down_obj_fromoss(pid,order_id):
else:
filelist = oss2.ObjectIteratorV2(oss_client, prefix=prefix)
objsTemp = prefix+"/"+pid+".obj"
jpgsTemp = prefix+"/"+pid+"Tex1.jpg"
mtlTemp = prefix+"/"+pid+".mtl"
find = False
for file in filelist:
filename = file.key.split('/')[-1]
if filename == '': continue
if file.key != objsTemp and file.key != jpgsTemp and file.key != mtlTemp:
continue
if filename.endswith(f'.obj') and find == True:
continue

Loading…
Cancel
Save