From 9d2b5d83e9692e2051fa13a8d2dc9abbf3fc5f36 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Fri, 13 Jan 2023 14:06:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A1=A5=E5=8D=A1=E5=88=97=E8=A1=A8):=20?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/v1/Manager.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/controller/api/v1/Manager.php b/app/controller/api/v1/Manager.php index 4290f0f..926f715 100644 --- a/app/controller/api/v1/Manager.php +++ b/app/controller/api/v1/Manager.php @@ -959,9 +959,11 @@ class Manager extends Base break; } $item->create_time = date('Y年m月d日 H:i:s', $item->create_time); - $typeText = ClockLog::typeText()[$item->type] ?? ''; - $dayText = date('Y年m月d日', strtotime($item->day)); - $item->desc = "补打$dayText $typeText 打卡"; + $typeText = ClockLog::typeText()[$item->type] ?? ''; + $dayText = date('Y年m月d日', strtotime($item->day)); + $item->day_text = $dayText; + $item->text_text = $typeText; + $item->desc = "补打$dayText $typeText 打卡"; unset($item->check_by); unset($item->check_at); unset($item->account_id);