update PastGirlListPanel.prefab

This commit is contained in:
2025-09-22 19:31:50 +08:00
parent bfa55f52da
commit 556194f24a
8 changed files with 560 additions and 284 deletions
+2 -2
View File
@@ -416,7 +416,7 @@ export default class Utils {
*/
public static formatChatTime(timestamp: number | null): string {
if (!timestamp) {
return "暂无聊天记录";
return LanguageUtils.getText("pastgirllistpanel.nomemory");
}
const now = new Date();
@@ -431,7 +431,7 @@ export default class Utils {
return `${hours}:${minutes}`;
} else if (diffDays < 7) {
// 一周内:显示x天前
return `${diffDays}${LanguageUtils.getText("purchasepanel.day")}}`;
return `${diffDays}${LanguageUtils.getText("purchasepanel.day")}`;
} else if (diffDays < 30) {
// 一个月内:显示x周前
const weeks = Math.floor(diffDays / 7);