This commit is contained in:
手瓜一十雪
2024-10-13 19:06:12 +08:00
parent c6dc86ef8d
commit 8122561337

View File

@@ -377,7 +377,7 @@ export class NTQQFileApi {
online_rkey: false online_rkey: false
}; };
try { try {
if (this.core.apis.PacketApi.PacketClient?.isConnected) { if (this.core.apis.PacketApi.packetClient?.isConnected) {
if ((!this.packetRkey || this.packetRkey[0].time < Date.now() / 1000)) { if ((!this.packetRkey || this.packetRkey[0].time < Date.now() / 1000)) {
this.packetRkey = await this.core.apis.PacketApi.sendRkeyPacket(); this.packetRkey = await this.core.apis.PacketApi.sendRkeyPacket();
} }