diff --git a/control/api.php b/control/api.php index 02cb78b..a90841a 100644 --- a/control/api.php +++ b/control/api.php @@ -42,7 +42,7 @@ class api extends publicBase { $goods_name = trim($this->post('goods_name')).''; $outer_goods_ids = $this->post('outer_goods_ids'); - if (empty($outer_goods_ids) || empty($goods_name)) $this->ajax_json(false, '商品名称或商品编码不能为空'); + if (empty($outer_goods_ids) && empty($goods_name)) $this->ajax_json(false, '商品名称或商品编码不能为空'); $res = $obj->getGoodsList($goods_name, $outer_goods_ids);