原始图片备份到drg2015桶中

This commit is contained in:
2024-07-10 08:38:28 +08:00
parent 457ed3ed07
commit 40953d4cf4

View File

@@ -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)