|
@@ -103,10 +103,10 @@ 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('藏品已经开始抢购或已过期,无法修改');
|
|
|
$goods_info = Db::name('store_collection')->find($data['id']);
|
|
|
- if($goods_info['issue_mode'] == 2 && strtotime($goods_info['apply_st']) <time()) $this->error('抽签报名开始无法修改');
|
|
|
- if($goods_info['inventory'] != $goods_info['now_inventory']) $this->error('商品库存已扣减,无法编辑');
|
|
|
+ //if($goods_info['issue_mode'] == 2 && strtotime($goods_info['apply_st']) <time()) $this->error('抽签报名开始无法修改');
|
|
|
+ //if($goods_info['inventory'] != $goods_info['now_inventory']) $this->error('商品库存已扣减,无法编辑');
|
|
|
}
|
|
|
if ($data['cover'] == '') $this->error('请上传藏品图片');
|
|
|
if ($data['price']<=0) $this->error('藏品价格错误');
|