lh há 2 meses atrás
pai
commit
e87b6e3ec1
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/Services/DeepSeek/DeepSeekService.php

+ 2 - 2
app/Services/DeepSeek/DeepSeekService.php

@@ -1373,7 +1373,7 @@ class DeepSeekService
         if (!$script_id || !$script_name) Utils::throwError('20003:参数异常');
 
         $id = DB::table('mp_scripts')->where('script_name', $script_name)->value('id');
-        if ((int)$id != (int)$script_id) {
+        if ($id && (int)$id !== (int)$script_id) {
             $script_name .= '_'.date('YmdHis');
         }
 
@@ -1427,7 +1427,7 @@ class DeepSeekService
         if (!$group_id || !$group_name || !$start_episode_number || !$end_episode_number) Utils::throwError('20003:参数异常');
 
         $id = DB::table('mp_script_episode_group')->where('group_name', $group_name)->value('id');
-        if ((int)$id != (int)$group_id) {
+        if ($id && (int)$id !== (int)$group_id) {
             $group_name .= '_'.date('YmdHis');
         }