Skip to content

Commit

Permalink
trim ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
takayama-lily committed May 26, 2022
1 parent 211bc44 commit ec33f87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core/base-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,12 @@ export class BaseClient extends EventEmitter {
}
/** 提交滑动验证码 */
submitSlider(ticket: string) {
ticket = String(ticket).trim()
const t = tlv.getPacker(this)
const body = new Writer()
.writeU16(2)
.writeU16(4)
.writeBytes(t(0x193, String(ticket)))
.writeBytes(t(0x193, ticket))
.writeBytes(t(0x8))
.writeBytes(t(0x104))
.writeBytes(t(0x116))
Expand Down

0 comments on commit ec33f87

Please sign in to comment.