111
This commit is contained in:
1 parent
9fb1a367dd
commit
7f7678e5a0
1 file changed
+8
@@ -307,6 +307,14 @@ def export_and_update_glbs(pid,order_ids):
|
|||||||
print("uuid",uuid)
|
print("uuid",uuid)
|
||||||
config.oss_bucket_3d_view.put_object_from_file(f'{uuid}/3d_view.png', f'D://print/{pid}/{pid}_pic.png')
|
config.oss_bucket_3d_view.put_object_from_file(f'{uuid}/3d_view.png', f'D://print/{pid}/{pid}_pic.png')
|
||||||
|
|
||||||
|
# 读取队列的信息,获取内容快照, 按时间戳命名 文件
|
||||||
|
r = create_redis_connection()
|
||||||
|
info = r.lrange('model:printOrder', 0, -1)
|
||||||
|
print(info)
|
||||||
|
# 将info写入到文件中
|
||||||
|
with open(os.path.join(config.workdir,'log','external_order_glbV2',pid,f'{pid}_{time.time()}.log'), 'w') as f:
|
||||||
|
f.write(str(info))
|
||||||
|
|
||||||
def createGlb(pid,order_ids):
|
def createGlb(pid,order_ids):
|
||||||
|
|
||||||
#下载obj文件
|
#下载obj文件
|
||||||
|
|||||||
Reference in new issue
Block a user