From 40953d4cf4892c7c79d1cafd8d428bd3672fa503 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Wed, 10 Jul 2024 08:38:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E5=A7=8B=E5=9B=BE=E7=89=87=E5=A4=87?= =?UTF-8?q?=E4=BB=BD=E5=88=B0drg2015=E6=A1=B6=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_mask.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/photo_mask.py b/photo_mask.py index ccae35b..c1a0664 100644 --- a/photo_mask.py +++ b/photo_mask.py @@ -15,6 +15,7 @@ from sqlalchemy import update from auto_email.error_email import send_an_error_email from config.mysql import MysqlSession from config.photo_review import PHHD_BATCH_SIZE, SLEEP_MINUTES +from config.ucloud import BUCKET from models import ZxPhrec, ZxPhhd from ucloud import ucloud @@ -224,7 +225,7 @@ def photo_mask(pk_phhd, content): .all() session.close() for phrec in phrecs: - is_copy_success = ucloud.copy_file("drg100", phrec.cfjaddress, "drg103", phrec.cfjaddress) + is_copy_success = ucloud.copy_file(BUCKET, phrec.cfjaddress, "drg2015", phrec.cfjaddress) if not is_copy_success: continue img_url = ucloud.get_private_url(phrec.cfjaddress)