qiushang 3 일 전
부모
커밋
01034f3294
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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,