This commit is contained in:
手瓜一十雪 committed 2024-10-14 09:07:03 +08:00
1 parent 5bdb23c012
commit 143d5fde63
1 file changed
+1 -1
+1 -1
View File
@@ -378,7 +378,7 @@ export class NTQQFileApi {
}; };
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();
} }
if (this.packetRkey.length > 0) { if (this.packetRkey.length > 0) {