Browse Source

[智价云] 采集商品配置删除异常提示更新

tangyuanwang 2 tháng trước cách đây
mục cha
commit
629bc89bf4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/Manager/Collect/Product.php

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

@@ -230,7 +230,7 @@ class Product extends Controller
         // 执行删除
         $Product = $ProductModel->where($where)->first();
         if (!$Product) {
-            return false;
+            return             json_send(['code' => 'error', 'msg' => '删除失败,记录不存在']);
         }
         DB::beginTransaction();
         try {