lh 6 月之前
父节点
当前提交
05da31083d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Services/Book/BookService.php

+ 2 - 2
app/Services/Book/BookService.php

@@ -296,7 +296,7 @@ class BookService
     }
 
     public function audioEffects($data) {
-        return DB::table('mp_audio_effects')->where('is_enabled', 1)->select('audio_effect_name', 'audio_effect_url', 'playtime_seconds')->get()->map(function ($value) {
+        return DB::table('mp_audio_effects')->where('is_enabled', 1)->select('id as audio_effect_id', 'audio_effect_name', 'audio_effect_url', 'playtime_seconds')->get()->map(function ($value) {
             return (array)$value;
         })->toArray();
     }
@@ -396,7 +396,7 @@ class BookService
     }
 
     public function bgms($data) {
-        return DB::table('mp_bgms')->where('is_enabled', 1)->select('bgm_name', 'bgm_url', 'playtime_seconds')->get()->map(function ($value) {
+        return DB::table('mp_bgms')->where('is_enabled', 1)->select('id as bgm_id', 'bgm_name', 'bgm_url', 'playtime_seconds')->get()->map(function ($value) {
             return (array)$value;
         })->toArray();
     }