From 001d4c9b214e82736951b41576b18a7b6a655e0c Mon Sep 17 00:00:00 2001 From: bruce <1272542526@qq.com> Date: Thu, 21 Mar 2024 10:12:05 +0800 Subject: [PATCH] update --- app/store/model/Maintenance.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/store/model/Maintenance.php b/app/store/model/Maintenance.php index 7f09e2fe..a3011868 100644 --- a/app/store/model/Maintenance.php +++ b/app/store/model/Maintenance.php @@ -69,8 +69,8 @@ class Maintenance extends MaintenanceModel } } */ - if (empty($data['url'])) { - $this->error = '请输地址'; + if (empty($data['img_id'])) { + $this->error = '请上传维修图片'; return false; } $data['store_id'] = self::$storeId; @@ -88,8 +88,8 @@ class Maintenance extends MaintenanceModel $this->error = '请输入保修名称'; return false; } - if (empty($data['url'])) { - $this->error = '请输入地址'; + if (empty($data['img_id'])) { + $this->error = '请上传维修图片'; return false; } return $this->save($data) !== false;