update billing message logic

This commit is contained in:
Liujian committed 2025-10-17 13:37:58 +08:00
1 parent a992866058
commit 76e8dbc083
2 files changed
+3

No files matched your search

+1
View File
@@ -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;
@@ -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)