|
@@ -50,7 +50,6 @@ class Goods1 extends Controller
|
|
|
{
|
|
|
foreach ($data as &$v){
|
|
|
$now_inventory = getCollectionInventory($v['id']);
|
|
|
- var_dump($now_inventory);
|
|
|
$v['now_inventory'] = $now_inventory<=0 ? 0 : $now_inventory;
|
|
|
$v['shengyu'] = Db::name('hash')->where('goods_id',$v['id'])->where('status',0)->count();
|
|
|
}
|
|
@@ -97,9 +96,9 @@ class Goods1 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['issue_mode'] == 2 && strtotime($goods_info['apply_st']) <time()) $this->error('抽签报名开始无法修改');
|
|
|
}
|
|
|
if ($data['cover'] == '') $this->error('请上传藏品图片');
|
|
|
if ($data['price']<=0) $this->error('藏品价格错误');
|