Commit 3e3b3681 authored by ZZH's avatar ZZH

fix next news 2024-03-11

parent 1a17c015
Subproject commit d071cc30c107419339a610e0230928c4504398bf
Subproject commit 25fccc14e021a8bc04243257f9d7584e2c50f587
......@@ -9,6 +9,7 @@ from unify_api.constants import OSS_NEWS
from pot_libs.logger import log
from unify_api.modules.common.procedures.file_operate_pds import upload_file
from pot_libs.mysql_util.mysql_util import MysqlUtil
from pot_libs.settings import SETTING
async def upload_file_helper(file):
......@@ -24,7 +25,8 @@ async def upload_file_helper(file):
file_url = f"{OSS_NEWS}/{yr}/{month}/{uuid4()}.{file_name_lst[1]}"
log.info(f"准备上传文件 {file_name} {file_url}")
is_upload = await upload_file(file, file_url, bucket="qk-public-dev")
is_upload = await upload_file(file, file_url,
bucket=SETTING.qingstor_public_bucket)
return is_upload, file_url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment