lh 4 giorni fa
parent
commit
6aa0687500
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      app/Services/DeepSeek/DeepSeekService.php

+ 1 - 0
app/Services/DeepSeek/DeepSeekService.php

@@ -196,6 +196,7 @@ class DeepSeekService
         // 更新角色-音色信息
         $existed_role_info = DB::table('mp_book_version')->where('bid', $bid)->where('id', $version_id)->value('role_info');
         $existed_role_info = json_decode($existed_role_info, true);
+        if (!$existed_role_info) $existed_role_info = [];
 
         // 获取情感信息
         $emotion_list = DB::table('mp_emotion_list')->where('is_enabled', 1)->pluck('emotion_name', 'emotion_code')->toArray();