VIP失效时间格式化逻辑修改

This commit is contained in:
chen wei bo
2025-09-18 09:38:17 +08:00
parent c36ff6dc76
commit 1fa5eb7cb0
3 changed files with 18 additions and 16 deletions
@@ -242,7 +242,7 @@ export class ChatHistoryManager {
const message: ChatMessage = {
role: serverMsg.isAi ? "model" : "user",
parts: [{ text: serverMsg.msg }],
timestamp: serverMsg.msgId || Date.now(),
timestamp: Number(serverMsg.msgId) || Date.now(),
};
messages.push(message);
}
@@ -396,7 +396,7 @@ export class ChatHistoryManager {
const msg = girlData.getChatRecordMsg(category.toString(), roleId, id);
if (msg) {
serverMessages.push({
msgId: id,
msgId: id.toString(),
msg: msg,
isAi: isAi,
});