Kirin 2 роки тому
батько
коміт
5368f69fdb
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/admin/model/store/StoreProduct.php

+ 1 - 1
app/admin/model/store/StoreProduct.php

@@ -85,7 +85,7 @@ class StoreProduct extends BaseModel
                 $model = $model->where('store_name|keyword|id', 'LIKE', "%$where[store_name]%");
             }
             if (isset($where['bar_code']) && $where['bar_code'] != '') {
-                $product_id = StoreProductAttrValue::where('bar_code', $where['bar_code'])->value('product_id');
+                $product_id = StoreProductAttrValue::where('bar_code', $where['bar_code'])->column('product_id');
                 if ($product_id) {
                     $where['product_id'] = $product_id;
                 } else {