lh 4 روز پیش
والد
کامیت
6aa0687500
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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();