* [bug#59481,done,0.5h] Get non-deleted products.

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