update
This commit is contained in:
parent
aef7d2352b
commit
12f68cdcbd
@ -94,9 +94,9 @@ async def get_coupon_activity(
|
||||
activity_data.update({'can_receive': can_receive})
|
||||
|
||||
# 检查活动是否结束
|
||||
if activity.end_time < datetime.now():
|
||||
activity_data.update({'can_receive': False})
|
||||
activity_data.update({'is_end': True})
|
||||
is_end = activity.end_time < datetime.now()
|
||||
activity_data.update({'can_receive': not is_end})
|
||||
activity_data.update({'is_end': is_end})
|
||||
|
||||
return success_response(data=activity_data)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user