songxingwei 3 年之前
父节点
当前提交
d1aa446dfc
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/store/controller/Goods.php

+ 2 - 2
application/store/controller/Goods.php

@@ -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('请上传作者头像');