正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -66,7 +66,7 @@ class HtmlLanguageSpecialCollect extends Command | @@ -66,7 +66,7 @@ class HtmlLanguageSpecialCollect extends Command | ||
| 66 | //设置数据库 | 66 | //设置数据库 |
| 67 | $project = ProjectServer::useProject($project_id); | 67 | $project = ProjectServer::useProject($project_id); |
| 68 | if ($project) { | 68 | if ($project) { |
| 69 | - $collect_info = CollectTask::select(['id', 'domain', 'route', 'language'])->where('id', $collect_id)->where('status', CollectTask::STATUS_UN)->where('language', '=', '')->first(); | 69 | + $collect_info = CollectTask::select(['id', 'domain', 'route', 'language'])->where('id', $collect_id)->where('status', CollectTask::STATUS_UN)->where('language', '!=', '')->first(); |
| 70 | 70 | ||
| 71 | if (!$collect_info) { | 71 | if (!$collect_info) { |
| 72 | sleep(2); | 72 | sleep(2); |
| @@ -138,7 +138,7 @@ class HtmlLanguageSpecialCollect extends Command | @@ -138,7 +138,7 @@ class HtmlLanguageSpecialCollect extends Command | ||
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | 140 | ||
| 141 | - $update_log = UpdateLog::where('project_id',555)->where('status', UpdateLog::STATUS_COM)->where('collect_status', '>', UpdateLog::COLLECT_STATUS_MAIN)->orderBy('collect_status', 'asc')->first(); | 141 | + $update_log = UpdateLog::where('status', UpdateLog::STATUS_COM)->where('collect_status', '>', UpdateLog::COLLECT_STATUS_MAIN)->orderBy('collect_status', 'asc')->first(); |
| 142 | if (!$update_log) { | 142 | if (!$update_log) { |
| 143 | return false; | 143 | return false; |
| 144 | } | 144 | } |
| @@ -162,7 +162,7 @@ class HtmlLanguageSpecialCollect extends Command | @@ -162,7 +162,7 @@ class HtmlLanguageSpecialCollect extends Command | ||
| 162 | //设置数据库 | 162 | //设置数据库 |
| 163 | $project = ProjectServer::useProject($update_log->project_id); | 163 | $project = ProjectServer::useProject($update_log->project_id); |
| 164 | if ($project) { | 164 | if ($project) { |
| 165 | - $collect_list = CollectTask::select(['id', 'project_id'])->where('project_id', $update_log['project_id'])->where('source', $source)->where('language', '=', '')->where('status', CollectTask::STATUS_UN)->orderBy('id', 'asc')->limit(50)->get(); | 165 | + $collect_list = CollectTask::select(['id', 'project_id'])->where('project_id', $update_log['project_id'])->where('source', $source)->where('language', '!=', '')->where('status', CollectTask::STATUS_UN)->orderBy('id', 'asc')->limit(50)->get(); |
| 166 | 166 | ||
| 167 | if ($collect_list->count() == 0) { | 167 | if ($collect_list->count() == 0) { |
| 168 | $complete = true; | 168 | $complete = true; |
-
请 注册 或 登录 后发表评论