diff --git a/timer/external_order_glbV2.py b/timer/external_order_glbV2.py index 2013b4b..f15a5d3 100644 --- a/timer/external_order_glbV2.py +++ b/timer/external_order_glbV2.py @@ -283,14 +283,14 @@ def export_and_update_glbs(pid,order_ids): print(strRequest) res = requests.post("https://shop.api.suwa3d.com/api/printOrder/updateExternalOrderStatusV2", data={'pid': pid,"order_ids":order_ids}) print(res.text) - # 记录日志文件 - logPath = os.path.join(config.workdir,'log/external_order_glbV2',pid,f'{order_ids}.log') - os.makedirs(log_dir, exist_ok=True) - # 创建并且写入日志 - with open(logPath, 'w') as f: - f.write(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 订单状态更新完成,共费时{libs.diff_time(start_time)}\n') - f.write(f'{res.text}\n') - f.write(f'{strRequest}\n') + # # 记录日志文件 + # logPath = os.path.join(config.workdir,"log",'external_order_glbV2',pid,f'{order_ids}.log') + # os.makedirs(logPath, exist_ok=True) + # # 创建并且写入日志 + # with open(logPath, 'w+') as f: + # f.write(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 订单状态更新完成,共费时{libs.diff_time(start_time)}\n') + # f.write(f'{res.text}\n') + # f.write(f'{strRequest}\n')