@@ -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 {