|
@@ -105,6 +105,8 @@ const gCommonHeaders = {
|
|
|
|
|
|
|
|
let gPageData = {};
|
|
let gPageData = {};
|
|
|
|
|
|
|
|
|
|
+let gIgnoreCouponGotStatus = true;
|
|
|
|
|
+
|
|
|
async function Main() {
|
|
async function Main() {
|
|
|
if (magicJS.isStrictRequest) {
|
|
if (magicJS.isStrictRequest) {
|
|
|
magicJS.checkRecordRequestBody();
|
|
magicJS.checkRecordRequestBody();
|
|
@@ -400,6 +402,9 @@ function getActCouponStatus(activityCode) {
|
|
|
|
|
|
|
|
// 今日是否执行过获取优惠券任务
|
|
// 今日是否执行过获取优惠券任务
|
|
|
function isCouponExecToday(activityCode) {
|
|
function isCouponExecToday(activityCode) {
|
|
|
|
|
+ if (gIgnoreCouponGotStatus) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
let status = getActCouponStatus(activityCode);
|
|
let status = getActCouponStatus(activityCode);
|
|
|
if (status == 1 || status == 2 || status == 3) {
|
|
if (status == 1 || status == 2 || status == 3) {
|
|
|
return true;
|
|
return true;
|
|
@@ -412,6 +417,9 @@ function isCouponExecToday(activityCode) {
|
|
|
|
|
|
|
|
// 当月是否领取过优惠券
|
|
// 当月是否领取过优惠券
|
|
|
function hasCouponGotMonth(activityCode) {
|
|
function hasCouponGotMonth(activityCode) {
|
|
|
|
|
+ if (gIgnoreCouponGotStatus) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
let strNum = magicJS.data.read(key, null);
|
|
let strNum = magicJS.data.read(key, null);
|
|
|
if (strNum) {
|
|
if (strNum) {
|
|
@@ -426,6 +434,9 @@ function hasCouponGotMonth(activityCode) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function hasCouponGotWeek(activityCode) {
|
|
function hasCouponGotWeek(activityCode) {
|
|
|
|
|
+ if (gIgnoreCouponGotStatus) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
let strNum = magicJS.data.read(key, null);
|
|
let strNum = magicJS.data.read(key, null);
|
|
|
if (strNum) {
|
|
if (strNum) {
|
|
@@ -440,6 +451,9 @@ function hasCouponGotWeek(activityCode) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function hasCouponGotDay(activityCode) {
|
|
function hasCouponGotDay(activityCode) {
|
|
|
|
|
+ if (gIgnoreCouponGotStatus) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ }
|
|
|
let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
let strNum = magicJS.data.read(key, null);
|
|
let strNum = magicJS.data.read(key, null);
|
|
|
if (strNum) {
|
|
if (strNum) {
|