|
|
@ -69,8 +69,8 @@ class Maintenance extends MaintenanceModel |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} */ |
|
|
|
} */ |
|
|
|
if (empty($data['url'])) { |
|
|
|
if (empty($data['img_id'])) { |
|
|
|
$this->error = '请输地址'; |
|
|
|
$this->error = '请上传维修图片'; |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
$data['store_id'] = self::$storeId; |
|
|
|
$data['store_id'] = self::$storeId; |
|
|
@ -88,8 +88,8 @@ class Maintenance extends MaintenanceModel |
|
|
|
$this->error = '请输入保修名称'; |
|
|
|
$this->error = '请输入保修名称'; |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (empty($data['url'])) { |
|
|
|
if (empty($data['img_id'])) { |
|
|
|
$this->error = '请输入地址'; |
|
|
|
$this->error = '请上传维修图片'; |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
return $this->save($data) !== false; |
|
|
|
return $this->save($data) !== false; |
|
|
|