构建修模obj 下错文件处理
This commit is contained in:
1 parent
d47e06b16b
commit
2eb06ced91
1 file changed
+8
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user