From 325e9eac44365ad9d33fcb7711434f7fc80a435c Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 20 Dec 2021 10:34:24 +0800 Subject: [PATCH] settter --- app/controller/api/Consumer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/api/Consumer.php b/app/controller/api/Consumer.php index 5aeed0d..e75c7c2 100644 --- a/app/controller/api/Consumer.php +++ b/app/controller/api/Consumer.php @@ -137,9 +137,9 @@ class Consumer extends Base $endTime = strtotime($item->end_time); if (($endTime - $time) < $weekTime) { $ExpirationTime = ($endTime - $time) / 86400; - $item->ExpirationTime = "还有" . ceil($ExpirationTime) . "到期"; + $item->expirationTimeStr = "还有" . ceil($ExpirationTime) . "到期"; } else { - $item->ExpirationTime = ''; + $item->expirationTimeStr = ''; } });