From 76e8dbc0830fbf89ad3ae78130183da7ab84aa25 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Fri, 17 Oct 2025 13:37:58 +0800 Subject: [PATCH] update billing message logic --- scripts/resource/sql/version-1.1.0.sql | 1 + services/admin_service/services/billing_message_handler.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/resource/sql/version-1.1.0.sql b/scripts/resource/sql/version-1.1.0.sql index fc4d2a0..6c22167 100644 --- a/scripts/resource/sql/version-1.1.0.sql +++ b/scripts/resource/sql/version-1.1.0.sql @@ -75,6 +75,7 @@ ALTER TABLE `user` MODIFY COLUMN `role_id` int NOT NULL COMMENT '角色 ID:0 DELETE FROM sys_config WHERE `key` = "mcp_server_prefix"; + INSERT INTO `sys_config` (`id`,`key`, `value`,`description`,`created_at`,`updated_at`) VALUES ('xpack-version','version', '1.1.0', 'User wallet history max count', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP) ON DUPLICATE KEY UPDATE `value` = VALUES(`value`), `description` = VALUES(`description`), `updated_at` = CURRENT_TIMESTAMP; diff --git a/services/admin_service/services/billing_message_handler.py b/services/admin_service/services/billing_message_handler.py index a901aa8..a684c87 100644 --- a/services/admin_service/services/billing_message_handler.py +++ b/services/admin_service/services/billing_message_handler.py @@ -142,6 +142,8 @@ class BillingMessageHandler: call_end_time=billing_message.call_end_time, process_status=ProcessStatus.PENDING, apikey_id=billing_message.apikey_id, + created_at=datetime.now(timezone.utc), + updated_at=datetime.now(timezone.utc), ) created_log = self.call_log_repo.create(call_log)