From 5889fe8a974d0c543b7addded21a45e03f9b3583 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 20 Dec 2021 14:51:13 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 2 ++ 1 file changed, 2 insertions(+) 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']);