北京汽车

1.修复签到报错问题
2.优化日志输出
This commit is contained in:
smallfawn
2023-11-25 22:05:34 +08:00
committed by GitHub
parent 53d750d29c
commit e2149d1a86

View File

@@ -138,17 +138,18 @@ class UserInfo {
fn: "签到", fn: "签到",
method: "post", method: "post",
url: `https://beijing-gateway-customer.app-prod.bjev.com.cn/beijing-zone-asset/exterior/userSignRecord/addSign?uuid_check=${this.get_uuid()}`, 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); let { body: result } = await httpRequest(options);
//console.log(options); //console.log(options);
result = JSON.parse(result); result = JSON.parse(result);
//console.log(result); //console.log(result);
if (result.code == 0) { if (result.code == 0) {
$.log(`账号[${this.index}] 欢迎用户: ${result.errcode}🎉`) $.log(`✅[${options.fn}]成功🎉`)
} else { } else {
console.log(`账号[${this.index}] 用户查询: 失败`); console.log(`❌[${options.fn}]失败`);
console.log(result); console.log(JSON.stringify(result));
} }
} catch (e) { } catch (e) {
console.log(e); console.log(e);