Jelajahi Sumber

[智价云] 补充全部平台查询

tangyuanwang 1 bulan lalu
induk
melakukan
b351dccfcc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Http/Controllers/Manager/Collect/Product.php

+ 1 - 1
app/Http/Controllers/Manager/Collect/Product.php

@@ -40,7 +40,7 @@ class Product extends Controller
         // 其他条件
         if (is_numeric($status)) $map[] = ['status', '=', $status];
         if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
-        if ($platform) $map[] = ['platform', 'like', "%$platform%"];
+        if (is_numeric($platform) || $platform) $map[] = ['platform', 'like', "%$platform%"];
         // 查询数据
         $result = $ProductModel->query()
             ->where($map)