...
|
...
|
@@ -95,15 +95,12 @@ exports.getCouponStatus = (params) => { |
|
|
break;
|
|
|
}
|
|
|
|
|
|
coupon.data.forEach(function(val) {
|
|
|
if (val.template_name === 'getCoupon' && val.data.length) {
|
|
|
// 优惠券楼层
|
|
|
val.data.forEach(function(item) {
|
|
|
coupon.data.forEach(function(item) {
|
|
|
const status = Number(item.status);
|
|
|
|
|
|
if ([2, 3].indexOf(status) > -1) {
|
|
|
const cou = {
|
|
|
id: crypto.encryption('yoho9646abcdefgh', item.couponID) // 加密优惠券号
|
|
|
id: crypto.encryption('yoho9646abcdefgh', item.couponId) // 加密优惠券号
|
|
|
};
|
|
|
|
|
|
if (status === 2) {
|
...
|
...
|
@@ -116,8 +113,6 @@ exports.getCouponStatus = (params) => { |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
while (false);
|
|
|
return result;
|
|
|
})();
|
...
|
...
|
|