|
@@ -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();
|
|
|
}
|