songxingwei 2 роки тому
батько
коміт
f62b6653b4
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      application/store/controller/Goods.php

+ 1 - 0
application/store/controller/Goods.php

@@ -117,6 +117,7 @@ class Goods extends Controller
             }
             if ($data['cover'] == '') $this->error('请上传藏品图片');
             if ($data['type'] == '') $this->error('请选择藏品类型');
+            if ($data['price']<=0) $this->error('藏品价格错误');
             if ($data['auth_img'] == '') $this->error('请上传作者头像');
             if ($data['describe'] == '') $this->error('请上传商品描述');
             if ($data['buy_count']<1) $this->error('限购数量不能小于1');