Kaynağa Gözat

调整新建和编辑产品接口

lh 1 ay önce
ebeveyn
işleme
dd43839206
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      app/Services/Anime/AnimeService.php

+ 2 - 2
app/Services/Anime/AnimeService.php

@@ -5049,14 +5049,14 @@ class AnimeService
         
         
         // 检查是否存在且属于当前用户
         // 检查是否存在且属于当前用户
         $role = DB::table('mp_products')
         $role = DB::table('mp_products')
-        ->whereIn('id', [$ids])
+        ->whereIn('id', $ids)
         ->where('cpid', $cpid)
         ->where('cpid', $cpid)
         ->get();
         ->get();
         if (!$role) Utils::throwError('20003:记录不存在');
         if (!$role) Utils::throwError('20003:记录不存在');
         
         
         return DB::table('mp_products')
         return DB::table('mp_products')
         ->where('cpid', $cpid)
         ->where('cpid', $cpid)
-        ->whereIn('id', $id)
+        ->whereIn('id', $ids)
         ->update([
         ->update([
             'is_deleted' => 1,
             'is_deleted' => 1,
             'updated_at' => date('Y-m-d H:i:s')
             'updated_at' => date('Y-m-d H:i:s')