作者 刘锟

update

@@ -32,7 +32,7 @@ class ProjectReset extends Command @@ -32,7 +32,7 @@ class ProjectReset extends Command
32 if ($project) { 32 if ($project) {
33 try { 33 try {
34 DB::connection('custom_mysql')->statement("DELETE FROM `gl_collect_source` WHERE `origin` LIKE '%.css%' OR `origin` LIKE '%.js%'"); 34 DB::connection('custom_mysql')->statement("DELETE FROM `gl_collect_source` WHERE `origin` LIKE '%.css%' OR `origin` LIKE '%.js%'");
35 - DB::connection('custom_mysql')->statement("UPDATE `gl_collect_task` SET `status` = 0"); 35 + DB::connection('custom_mysql')->statement("UPDATE `gl_collect_task` SET `status` = 0 WHERE `language` = ''");
36 } catch (\Exception $e) { 36 } catch (\Exception $e) {
37 echo $project_id . ',重置失败' . PHP_EOL; 37 echo $project_id . ',重置失败' . PHP_EOL;
38 } 38 }