qiushang 2 hari lalu
induk
melakukan
01034f3294
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/Http/Home/HelpController.php

+ 2 - 2
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)->first();
+            $productInfo = DB::table('product')->select(['id', 'title', 'logo'])->where('id', $productId)->where('is_delete', 0)->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)->first();
+            $productInfo = DB::table('product')->select(['id', 'title', 'logo'])->where('id', $productId)->where('is_delete', 0)->first();
 
             $data[] = [
                 'product' => $productInfo,