|
@@ -93,7 +93,7 @@ class Goods extends Controller
|
|
|
$this->title = '编辑商品';
|
|
|
$id = $this->request->get('id');
|
|
|
$checksell = $this->checkSellTime($id);
|
|
|
- //if (!$checksell) $this->error('藏品已经开始抢购或已过期,无法修改');
|
|
|
+ if (!$checksell) $this->error('藏品已经开始抢购或已过期,无法修改');
|
|
|
$this->_form($this->table, 'form');
|
|
|
}
|
|
|
|
|
@@ -112,7 +112,7 @@ class Goods extends Controller
|
|
|
if($this->request->post()){
|
|
|
if (isset($data['id']) || !empty($data['id'])){
|
|
|
$checksell = $this->checkSellTime($data['id']);
|
|
|
- //if (!$checksell) $this->error('藏品已经开始抢购或已过期,无法修改');
|
|
|
+ if (!$checksell) $this->error('藏品已经开始抢购或已过期,无法修改');
|
|
|
}
|
|
|
if ($data['cover'] == '') $this->error('请上传藏品图片');
|
|
|
if ($data['auth_img'] == '') $this->error('请上传作者头像');
|