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'])) {
$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;

Loading…
Cancel
Save