|
|
@@ -607,9 +607,8 @@ class ActivityInfo(BaseModelMixin):
|
607
|
607
|
return (self.model_uni_names and model_name in self.model_uni_names) and (self.start_at <= tc.utc_datetime() < self.end_at)
|
608
|
608
|
|
609
|
609
|
def coupon_info(self, created_at=None):
|
610
|
|
- coupon_expire_at = self.final_coupon_expire_at(created_at=created_at)
|
611
|
610
|
return {
|
612
|
|
- 'coupon_expire_at': coupon_expire_at,
|
|
611
|
+ 'coupon_expire_at': self.final_coupon_expire_at(created_at=created_at),
|
613
|
612
|
'coupon_value': self.coupon_value,
|
614
|
|
- 'coupon_has_expired': tc.utc_datetime() >= coupon_expire_at,
|
|
613
|
+ 'coupon_has_expired': tc.utc_datetime() >= self.final_expire_at,
|
615
|
614
|
},
|