幸运抽奖

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

20
bear.js
View File

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

File diff suppressed because one or more lines are too long