update
This commit is contained in:
@@ -64,7 +64,7 @@ export class PastGirlListItem extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
refreshData(girlId: number, baseNode: Node) {
|
||||
refreshData(girlId: number, baseNode: Node):number {
|
||||
if (!this.stars) {
|
||||
this.stars = this.starParent.getComponentsInChildren(Sprite);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ export class PastGirlListItem extends Component {
|
||||
}
|
||||
|
||||
// 显示最近聊天时间
|
||||
this.updateLastChatTime();
|
||||
return this.updateLastChatTime();
|
||||
}
|
||||
|
||||
private getLastChatTime(id: number): number | null {
|
||||
@@ -126,9 +126,10 @@ export class PastGirlListItem extends Component {
|
||||
}
|
||||
|
||||
// 更新最近聊天时间显示
|
||||
private updateLastChatTime() {
|
||||
private updateLastChatTime():number {
|
||||
const lastTime = this.getLastChatTime(this.id);
|
||||
this.lastChatTime.string = Utils.formatChatTime(lastTime);
|
||||
return lastTime;
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
||||
Reference in New Issue
Block a user