diff --git a/lib/wtlogin/tlv.js b/lib/wtlogin/tlv.js index e6f13f21..4c8b644e 100644 --- a/lib/wtlogin/tlv.js +++ b/lib/wtlogin/tlv.js @@ -34,7 +34,7 @@ const tlv_map = { .writeU16(1) // ip ver .writeBytes(crypto.randomBytes(4)) .writeU32(this.uin) - .write32(Date.now() & 0xffffffff) + .write32((Date.now() / 1000) & 0xffffffff) .writeBytes(Buffer.alloc(4)) //ip .writeU16(0); }, @@ -119,7 +119,7 @@ const tlv_map = { .writeU32(this.apk.appid) .writeU32(0) // app client ver .writeU64(this.uin) - .write32(Date.now() & 0xffffffff) + .write32((Date.now() / 1000) & 0xffffffff) .writeBytes(Buffer.alloc(4)) // dummy ip .writeU8(1) // save password .writeBytes(this.password_md5) @@ -278,7 +278,7 @@ const tlv_map = { .writeBytes(crypto.randomBytes(16)) .write32(1) .write32(16) - .write32(Date.now() & 0xffffffff) + .write32((Date.now() / 1000) & 0xffffffff) .writeBytes(Buffer.alloc(0)); }, 0x401: function () {