VIP失效时间格式化逻辑修改
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user