From 299908f6b4633f2b88fce350b3a7addd8814bbde Mon Sep 17 00:00:00 2001 From: sa0ChunLuyu Date: Wed, 5 Aug 2026 22:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E8=AE=A1=E5=88=92BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Http/Controllers/API/Admin/YeWu/PlanModelController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanModelController.php b/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanModelController.php index 246c3d9..2ca3ed3 100644 --- a/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanModelController.php +++ b/Laravel/app/Http/Controllers/API/Admin/YeWu/PlanModelController.php @@ -220,7 +220,7 @@ public function Save(Request $request) 'begin_time' => $planInfo['begin_time'], 'end_time' => $planInfo['end_time'], 'end_reservation_time' => $planInfo['end_reservation_time'], - 'time_unit' => $planInfo['time_unit'], + 'time_unit' => $planInfo['time_unit'] ?? 0, 'status' => $planInfo['status'], 'adduser' => $userid, 'date_type' => $date_type, @@ -720,7 +720,7 @@ public function SaveAdmin(Request $request) 'begin_time' => $planInfo['begin_time'], 'end_time' => $planInfo['end_time'], 'end_reservation_time' => $planInfo['end_reservation_time'], - 'time_unit' => $planInfo['time_unit'], + 'time_unit' => $planInfo['time_unit'] ?? 0, 'status' => $planInfo['status'], 'adduser' => $userid, 'date_type' => $date_type,