|
|
@@ -368,7 +368,7 @@ function setActCouponStatus(activityCode, status) {
|
|
|
let key = `PingAnIKEA#${activityCode}_${day}`;
|
|
|
magicJS.data.write(key, status);
|
|
|
if (status == 1 || status == 2) {// 已领取
|
|
|
- key = `PingAnIKEA#${activityCode}_status}`;
|
|
|
+ key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
magicJS.data.write(key, new Date().getTime());
|
|
|
}
|
|
|
}
|
|
|
@@ -394,7 +394,7 @@ function isCouponExecToday(activityCode) {
|
|
|
|
|
|
// 当月是否领取过优惠券
|
|
|
function hasCouponGotMonth(activityCode) {
|
|
|
- let key = `PingAnIKEA#${activityCode}_status}`;
|
|
|
+ let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
let strNum = magicJS.data.read(key, null);
|
|
|
if (strNum) {
|
|
|
let now = new Date();
|
|
|
@@ -408,7 +408,7 @@ function hasCouponGotMonth(activityCode) {
|
|
|
}
|
|
|
|
|
|
function hasCouponGotWeek(activityCode) {
|
|
|
- let key = `PingAnIKEA#${activityCode}_status}`;
|
|
|
+ let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
let strNum = magicJS.data.read(key, null);
|
|
|
if (strNum) {
|
|
|
let now = new Date();
|
|
|
@@ -422,7 +422,7 @@ function hasCouponGotWeek(activityCode) {
|
|
|
}
|
|
|
|
|
|
function hasCouponGotDay(activityCode) {
|
|
|
- let key = `PingAnIKEA#${activityCode}_status}`;
|
|
|
+ let key = `PingAnIKEA#${activityCode}_CouponGotTime}`;
|
|
|
let strNum = magicJS.data.read(key, null);
|
|
|
if (strNum) {
|
|
|
let now = new Date();
|