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;