- 将数据库查询条件从 'productId' 更改为 'itemId' - 修正商品池导入状态判断逻辑 - 确保正确的商品标识符用于数据检索
@@ -112,7 +112,7 @@ class ProductService extends AlibabaAgentBaseService
// 判断是否加入商品池
$product['importStatus'] = 0;
- $import = Db::name('alibaba_import_goods')->where('product_id', $product['productId'])->find();
+ $import = Db::name('alibaba_import_goods')->where('product_id', $product['itemId'])->find();
if ($import) {
$product['importStatus'] = 1;
}