* [bug#59484,done,1h] Exclude shadow product.

This commit is contained in:
daitingting
2025-02-25 14:02:16 +08:00
committed by 谢杞钰
parent 10c77571cf
commit e067c02df7
+1 -1
View File
@@ -59,7 +59,7 @@ class release extends control
{
$this->app->loadLang('doc');
$products = $this->loadModel('product')->getPairs('nodeleted', 0, '', 'all');
$products = $this->loadModel('product')->getPairs('nodeleted', 0, '');
if(empty($products)) return $this->send(array('result' => 'fail', 'message' => $this->lang->doc->tips->noProduct));
if(!$productID) $productID = key($products);