Skip to content

Commit

Permalink
fix: login error
Browse files Browse the repository at this point in the history
  • Loading branch information
Icalinguaplusplus committed May 10, 2023
1 parent 841530c commit 484a66c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wtlogin/tlv.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit 484a66c

Please sign in to comment.