Kaynağa Gözat

fix(ThirdParty): 修复阿里代理商品服务中的产品ID字段错误

- 将数据库查询条件从 'productId' 更改为 'itemId'
- 修正商品池导入状态判断逻辑
- 确保正确的商品标识符用于数据检索
shichen 3 ay önce
ebeveyn
işleme
a505858f20

+ 1 - 1
app/services/ThirdParty/AlibabaAgent/ProductService.php

@@ -112,7 +112,7 @@ class ProductService extends AlibabaAgentBaseService
112 112
 
113 113
         // 判断是否加入商品池
114 114
         $product['importStatus'] = 0;
115
-        $import = Db::name('alibaba_import_goods')->where('product_id', $product['productId'])->find();
115
+        $import = Db::name('alibaba_import_goods')->where('product_id', $product['itemId'])->find();
116 116
         if ($import) {
117 117
             $product['importStatus'] = 1;
118 118
         }