diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 6c66074..df635bb 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -188,6 +188,8 @@ class Coupon extends Base if(isset($item->couponMain) && $item->couponMain){ $item->couponName = $item->couponMain->name; } + //重置过期时间 + $item->endTimeText = date("y-m-d",strtotime($item->endTime)); }); $res['list'] = multiTwoArrayKeysExcludeFilter($res['list']->toArray(), ['sort_weight']);