From fa32886fb2d4dca3cc29231282c8b4cfd1104de3 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Fri, 18 Jul 2025 16:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=9F=E5=88=97=E5=A4=84=E7=90=86=E5=AE=8C?= =?UTF-8?q?=E6=89=94=E5=88=B0=E5=8F=A6=E5=A4=96=E4=B8=80=E4=B8=AA=E9=98=9F?= =?UTF-8?q?=E5=88=97=E8=BF=9B=E8=A1=8C=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/auto_convert3d_new.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/auto_convert3d_new.py b/apps/auto_convert3d_new.py index 626c9cd..5df101d 100644 --- a/apps/auto_convert3d_new.py +++ b/apps/auto_convert3d_new.py @@ -176,6 +176,18 @@ def team_check(r): shutil.rmtree(os.path.join(workdir, 'print', pid,orderId), ignore_errors=True) print(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()), f'pid:{pid} 生成团队审核模型 end') + #塞入队列进行处理 , SADD 方式插入 + queueData = { + 'pid': pid, + 'order_id': orderId, + 'shop_id': shopId, + 'oss_path': ossPath, + } + r.sadd('model:adjust_image_color', json.dumps(queueData)) + + + + def get_p3d_info(pid): url = "https://mp.api.suwa3d.com/api/customerP3dLog/info?id="+pid res = requests.get(url)