Update gqcq.js

This commit is contained in:
smallfawn
2023-03-19 19:55:11 +08:00
committed by GitHub
parent ab9ce17f86
commit df7d0cfd0d

View File

@@ -168,7 +168,7 @@ class UserInfo {
// console.log(result) // console.log(result)
if (result.errorCode == 20000) { if (result.errorCode == 20000) {
this.box = result.data this.box = result.data
console.log(`账号[${this.index}], 共有宝箱:${this.box.length}个!`) DoubleLog(`账号[${this.index}], 共有宝箱:${this.box.length}个!`)
if (this.box.length > 0) { if (this.box.length > 0) {
for (let i = 0; i < this.box.length; i++) { for (let i = 0; i < this.box.length; i++) {
@@ -193,7 +193,7 @@ class UserInfo {
let result = await httpRequest(options) let result = await httpRequest(options)
// console.(result) // console.(result)
if (result.errorCode == 20000) { if (result.errorCode == 20000) {
console.log(`账号[${this.index}], 开宝箱:${result.errorMessage} ,恭喜你获得 ${result.data.medalName} 奖品为 ${result.data.medalDescription}`) DoubleLog(`账号[${this.index}], 开宝箱:${result.errorMessage} ,恭喜你获得 ${result.data.medalName} 奖品为 ${result.data.medalDescription}`)
} else { } else {
} }
@@ -277,7 +277,7 @@ class UserInfo {
headers: this.headersTwo, headers: this.headersTwo,
body: "activityCode=shop-draw" body: "activityCode=shop-draw"
} }
console.log(options); //console.log(options);
let result = await httpRequest(options); let result = await httpRequest(options);
//console.log(result); //console.log(result);
if (result.errorCode == 20000) { if (result.errorCode == 20000) {