From e2149d1a862250bb9e3193417bb54c919bb9b9a4 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Sat, 25 Nov 2023 22:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=97=E4=BA=AC=E6=B1=BD=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.修复签到报错问题 2.优化日志输出 --- bjev.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bjev.js b/bjev.js index 8c7c7bf..6588597 100644 --- a/bjev.js +++ b/bjev.js @@ -138,17 +138,18 @@ class UserInfo { fn: "签到", method: "post", url: `https://beijing-gateway-customer.app-prod.bjev.com.cn/beijing-zone-asset/exterior/userSignRecord/addSign?uuid_check=${this.get_uuid()}`, + body: JSON.stringify({}), } - options.headers = this.get_headers(options.method, options.url) + options.headers = this.get_headers(options.method, options.url, options.body) let { body: result } = await httpRequest(options); //console.log(options); result = JSON.parse(result); //console.log(result); if (result.code == 0) { - $.log(`✅账号[${this.index}] 欢迎用户: ${result.errcode}🎉`) + $.log(`✅[${options.fn}]成功🎉`) } else { - console.log(`❌账号[${this.index}] 用户查询: 失败`); - console.log(result); + console.log(`❌[${options.fn}]失败`); + console.log(JSON.stringify(result)); } } catch (e) { console.log(e);