Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-ava committed Jul 8, 2023
1 parent f743d03 commit 0c55515
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/core/base-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,7 @@ export class BaseClient extends EventEmitter {
let qImei36 = this.device.qImei36 || this.device.qImei16;
if (qImei36 && this.apk.qua) {
let url = new URL(this.sig.sign_addr);
let post_params = {
qua: this.apk.qua,
uin: this.uin,
cmd: cmd,
seq: seq,
buffer: body.toString('hex')
};
let post_params = `qua=${this.apk.qua}&uin=${this.uin}&cmd=${cmd}&seq=${seq}&buffer=${body.toString('hex')}`;
url.pathname = '/sign';
const {data} = await axios.post(url.href, post_params, {
timeout: 10000,
Expand Down

0 comments on commit 0c55515

Please sign in to comment.