v1.0
bruce 8 months ago
parent 61cf9835dc
commit 001d4c9b21
  1. 8
      app/store/model/Maintenance.php

@ -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;

Loading…
Cancel
Save