幸运抽奖

This commit is contained in:
youfak 2024-11-06 15:31:17 +08:00
parent 2bf6d0c812
commit 921208f02b
2 changed files with 537 additions and 17 deletions

28
bear.js
View File

@ -3233,7 +3233,7 @@ class IlIIlIli {
if (dailySignInMatch) {
dailySignIn.push({
type: "每日签到",
quantity: parseInt(dailySignInMatch[1]),
quantity: parseInt(dailySignInMatch[1]),
unit: (dailySignInMatch[2])
});
}
@ -3241,9 +3241,9 @@ class IlIIlIli {
if (continuousSignInMatch) {
continuousSignIn.push({
type: "连续签到",
dayNum: parseInt(continuousSignInMatch[1]),
quantity: parseInt(continuousSignInMatch[2]),
unit: continuousSignInMatch[3]
dayNum: parseInt(continuousSignInMatch[1]),
quantity: parseInt(continuousSignInMatch[2]),
unit: continuousSignInMatch[3]
});
}
}
@ -3276,9 +3276,10 @@ class IlIIlIli {
let Iil1l1 = {
"token": this.isvToken,
"source": "01",
"activityId": this.activityId,
"id": this.activityId,
...i1lIiiI
};
Illl1lII && (Iil1l1.wxToken = this.isvToken);
let li1II1il = await this.taskPostByJson("wuxian/user/" + l1lliil1 + "/" + this.activityId + (Illl1lII ? "?wxToken=" + encodeURIComponent(this.isvToken) : ""), Iil1l1);
return li1II1il;
@ -3889,12 +3890,19 @@ class Iii1iI1i {
if (list.equityName == "优惠券") list.equityName = list.denomination + "优惠券"
lIliI1Ii += " " + list.equityName + " 共" + list.availableQuantity + "/" + list.freezeQuantity + "份\n";
break;
case "gzsl":
if (list.detail.includes("自定义奖品")) {
lIliI1Ii += " " + list.name + " 共" + list.totalNum + "份\n";
} else {
lIliI1Ii += " "+ list.detail + " 共" + list.totalNum + "份\n";
}
break;
case "SignAct":
if (list.dayNum) {
lIliI1Ii += " " + list.type + " " + list.dayNum + "天, " + list.quantity + list.unit + "\n";
} else {
lIliI1Ii += " " + list.type + ", " + list.quantity + list.unit + "\n";
}
if (list.dayNum) {
lIliI1Ii += " " + list.type + " " + list.dayNum + "天, " + list.quantity + list.unit + "\n";
} else {
lIliI1Ii += " " + list.type + ", " + list.quantity + list.unit + "\n";
}
break;
case "CartItem":
lIliI1Ii += " " + list.replace(/[^(加购)\d+]\S+(?=\d+)/g, "件 ") + "\n";

File diff suppressed because one or more lines are too long