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