mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
北京汽车
1.修复签到报错问题 2.优化日志输出
This commit is contained in:
9
bjev.js
9
bjev.js
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user