* [apiv2] Only apiv1 check empty product

This commit is contained in:
朱金勇
2025-10-21 16:41:26 +08:00
committed by Gitfox
parent 346ca80392
commit 66fbc3d2fe
+1 -1
View File
@@ -153,7 +153,7 @@ class projectZen extends project
$multipleProducts = $this->loadModel('product')->getMultiBranchPairs($topProgramID);
foreach($rawdata->products as $index => $productID)
{
if(defined('RUN_MODE') && RUN_MODE == 'api')
if($this->app->apiVersion == 'v1')
{
$product = $this->loadModel('product')->getById($productID);
if(empty($product)) dao::$errors['products'][$index][$productID] = $this->lang->project->api->error->productNotFound;