liuhairui 6 сар өмнө
parent
commit
45f04da6ef

+ 0 - 20
application/job/TextToImageJob.php

@@ -183,26 +183,6 @@ class TextToImageJob
                     'error_msg' => "提示词中包含关键词".$keyword,
                     'update_time' => date('Y-m-d H:i:s')
                 ]);
-
-                // 1. 获取 text_to_image 表中指定 ID 的记录
-                $one_id = Db::name('text_to_image')->where('id', $skipId)->find();
-                if ($one_id && isset($one_id['old_image_url'])) {
-                    // 2. 查询 image_task_log 中 file_name 匹配的记录,按 id 降序排序,取最后一条
-                    $lastLog = Db::name('image_task_log')
-                        ->where('file_name', $one_id['old_image_url'])
-                        ->order('id', 'desc')
-                        ->find();
-                    if ($lastLog) {
-                        // 3. 执行更新
-                        Db::name('image_task_log')
-                            ->where('id', $lastLog['id'])
-                            ->update([
-                                'model_name'  => "提示词中包含关键词" . $keyword,
-                                'update_time' => date('Y-m-d H:i:s')
-                            ]);
-                    }
-                }
-
                 return "跳过生成:记录 ID {$skipId},包含关键词 - {$keyword}";
             }
         }