update
This commit is contained in:
@@ -28,7 +28,7 @@ export class PastGirlListPanel extends li_BaseView {
|
||||
this.itemInst = this._nodeTab.BubbleItem.getComponent(PastGirlListItem);
|
||||
this.itemInst.node.active = false;
|
||||
this.content = this._nodeTab.content;
|
||||
this.refresh();
|
||||
//this.refresh();
|
||||
}
|
||||
|
||||
// 从缓存池获取节点
|
||||
@@ -71,6 +71,7 @@ export class PastGirlListPanel extends li_BaseView {
|
||||
private getUnlockedGirls(): number[] {
|
||||
const GirlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
const allids = GirlData.getAllReleaseGirlIds();
|
||||
console.log(allids);
|
||||
return allids;
|
||||
}
|
||||
|
||||
@@ -88,12 +89,12 @@ export class PastGirlListPanel extends li_BaseView {
|
||||
const ids = this.getUnlockedGirls();
|
||||
|
||||
// 创建带时间戳的数组用于排序
|
||||
const girlsWithTime: {id: number, lastTime: number}[] = [];
|
||||
const girlsWithTime: { id: number; lastTime: number }[] = [];
|
||||
|
||||
// 收集每个女孩的最后聊天时间
|
||||
for (let id of ids) {
|
||||
const lastTime = ChatHistoryManager.Instance.getLastChatTime(id) || 0;
|
||||
girlsWithTime.push({id, lastTime});
|
||||
girlsWithTime.push({ id, lastTime });
|
||||
}
|
||||
|
||||
// 按最后聊天时间降序排序(最近的在前)
|
||||
|
||||
Reference in New Issue
Block a user