From a011e4575b4deffef466d0702a306f89f00c4c0e Mon Sep 17 00:00:00 2001 From: 18610128193 <10574456+chenweiqiang-123@user.noreply.gitee.com> Date: Wed, 1 Jul 2026 10:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=94=99=E8=AF=AF=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video-gen-api/app/api/v1/material_consumption.py | 2 +- video-gen-api/app/services/upload_queue.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/video-gen-api/app/api/v1/material_consumption.py b/video-gen-api/app/api/v1/material_consumption.py index 59f5e3b4..bba60ca0 100644 --- a/video-gen-api/app/api/v1/material_consumption.py +++ b/video-gen-api/app/api/v1/material_consumption.py @@ -112,7 +112,7 @@ async def sync_consumption( ) async def get_consumption_fields() -> Any | dict: fields = [ - {"field": "id", "description": "主键"}, + {"field": "id", "description": "编号"}, {"field": "advertiser_id", "description": "广告主id"}, {"field": "material_id", "description": "素材id"}, {"field": "consume_date", "description": "消耗日期"}, diff --git a/video-gen-api/app/services/upload_queue.py b/video-gen-api/app/services/upload_queue.py index 016bdbf3..955d281f 100644 --- a/video-gen-api/app/services/upload_queue.py +++ b/video-gen-api/app/services/upload_queue.py @@ -122,7 +122,7 @@ class UploadQueue: code = -1 if code != 0: - logger.error(f"Error getting account info: {json.dumps(account_info)}") + logger.error(f"获取账户信息失败: {json.dumps(account_info)}") else: existing_account = await db.execute( select(UserOAuthAccount).where( @@ -161,8 +161,7 @@ class UploadQueue: ) await db.commit() - message = result.get('message') or result.get('error', 'Unknown error') - logger.info(f"Upload task {task_id} completed: {'success' if result.get('success') else 'failed'}. Message: {message}") + logger.info(f"上传任务{task_id}完成: {'success' if result.get('success') else 'failed'}. 上传结果: {json.dumps(result)}") except Exception as e: async with async_session() as db: