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