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