- 在查询spu_id时添加is_alibaba字段过滤条件,确保只获取非阿里巴巴的产品数据 - 防止阿里巴巴产品数据影响正常的库存和价格计算逻辑
@@ -425,7 +425,7 @@ class ProductRepository extends BaseRepository
$value['detail'] = ['默认'];
$sku = '默认';
}
- $product_data = Db::name('store_product')->where('product_id', $id)->value('spu_id');
+ $product_data = Db::name('store_product')->where('product_id', $id)->where('is_alibaba',0)->value('spu_id');
if ($product_data) {
if (!in_array($merId, ['319', '320', '321', '322', '323', '324', '325', '326', '327', '328'])) {
if ($value['price'] < $value['cost']) {