qiushang 2 gün önce
ebeveyn
işleme
20b408e335
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      app/Http/Home/HelpController.php

+ 3 - 3
app/Http/Home/HelpController.php

@@ -27,7 +27,7 @@ class HelpController extends HttpBaseController
             $productId = $row->product_id;
             unset($row->id);
 
-            $productInfo = DB::table('product')->select(['id', 'title', 'logo'])->where('id', $productId)->where('is_delete', 0)->first();
+            $productInfo = DB::table('product')->select(['id', 'title', 'logo'])->where('id', $productId)->first();
 
             $data[] = [
                 'product' => $productInfo,
@@ -47,7 +47,7 @@ class HelpController extends HttpBaseController
             $productId = $row->product_id;
             unset($row->id);
 
-            $productInfo = DB::table('product')->select(['id', 'title', 'logo'])->where('id', $productId)->where('is_delete', 0)->first();
+            $productInfo = DB::table('product')->select(['id', 'title', 'logo'])->where('id', $productId)->first();
 
             $data[] = [
                 'product' => $productInfo,
@@ -104,7 +104,7 @@ class HelpController extends HttpBaseController
 
     private function getNewsCategory()
     {
-        return DB::table('news_category')->select(['id', 'mid', 'name', 'product_id'])->get();
+        return DB::table('news_category')->select(['id', 'mid', 'name', 'product_id'])->where('is_delete', 0)->get();
     }
 
     private function getNewsList($categoryId)