소스 검색

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

tangyuanwang 2 달 전
부모
커밋
629bc89bf4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 {