合并分支 'akun' 到 'master'
Akun 查看合并请求 !241
正在显示
1 个修改的文件
包含
6 行增加
和
5 行删除
| @@ -40,14 +40,15 @@ class HtmlSpecialCollect extends Command | @@ -40,14 +40,15 @@ class HtmlSpecialCollect extends Command | ||
| 40 | public function handle() | 40 | public function handle() |
| 41 | { | 41 | { |
| 42 | ini_set('memory_limit', '512M'); | 42 | ini_set('memory_limit', '512M'); |
| 43 | - while (true) { | 43 | +// while (true) { |
| 44 | $this->start_collect(); | 44 | $this->start_collect(); |
| 45 | - } | 45 | +// } |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | protected function start_collect() | 48 | protected function start_collect() |
| 49 | { | 49 | { |
| 50 | - $task_id = $this->get_task(); | 50 | +// $task_id = $this->get_task(); |
| 51 | + $task_id = '626_1'; | ||
| 51 | if ($task_id === false) { | 52 | if ($task_id === false) { |
| 52 | //所有项目采集完成 | 53 | //所有项目采集完成 |
| 53 | sleep(60); | 54 | sleep(60); |
| @@ -267,9 +268,9 @@ class HtmlSpecialCollect extends Command | @@ -267,9 +268,9 @@ class HtmlSpecialCollect extends Command | ||
| 267 | && (strpos($path_end, 'com') === false) | 268 | && (strpos($path_end, 'com') === false) |
| 268 | && (strpos($path_end, 'xml') === false) | 269 | && (strpos($path_end, 'xml') === false) |
| 269 | ) { | 270 | ) { |
| 270 | - $new_url = str_replace($home_url, $web_url_domain, $url); | ||
| 271 | - $source = CollectSource::where('project_id', $project_id)->where('origin', $new_url)->first(); | 271 | + $source = CollectSource::where('project_id', $project_id)->where('origin', $url)->first(); |
| 272 | if (!$source) { | 272 | if (!$source) { |
| 273 | + echo $url . PHP_EOL; | ||
| 273 | return [ | 274 | return [ |
| 274 | 'download' => true, | 275 | 'download' => true, |
| 275 | 'url' => $url, | 276 | 'url' => $url, |
-
请 注册 或 登录 后发表评论