Commit d7f02761 by 冷斌

后台修改

parent b7cd1a3d
...@@ -102,9 +102,9 @@ class AdminGoodsAction extends AdministratorAction ...@@ -102,9 +102,9 @@ class AdminGoodsAction extends AdministratorAction
if (empty($_POST['title'])) { if (empty($_POST['title'])) {
$this->error("商品名称不能为空"); $this->error("商品名称不能为空");
} }
if (empty($_POST['goods_levelhidden'])) { // if (empty($_POST['goods_levelhidden'])) {
$this->error("请选择分类"); // $this->error("请选择分类");
} // }
if (empty($_POST['cover'])) { if (empty($_POST['cover'])) {
$this->error("请上传商品封面"); $this->error("请上传商品封面");
} }
...@@ -198,9 +198,9 @@ class AdminGoodsAction extends AdministratorAction ...@@ -198,9 +198,9 @@ class AdminGoodsAction extends AdministratorAction
if (empty($_POST['title'])) { if (empty($_POST['title'])) {
$this->error("商品名称不能为空"); $this->error("商品名称不能为空");
} }
if (empty($_POST['goods_levelhidden'])) { // if (empty($_POST['goods_levelhidden'])) {
$this->error("请选择分类"); // $this->error("请选择分类");
} // }
if (empty($_POST['cover'])) { if (empty($_POST['cover'])) {
$this->error("请上传商品封面"); $this->error("请上传商品封面");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment