合并分支 'akun' 到 'master'
Akun 查看合并请求 !242
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -41,7 +41,7 @@ class HtmlSpecialCollect extends Command | @@ -41,7 +41,7 @@ class HtmlSpecialCollect extends Command | ||
| 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 | ||
| @@ -103,7 +103,7 @@ class HtmlSpecialCollect extends Command | @@ -103,7 +103,7 @@ class HtmlSpecialCollect extends Command | ||
| 103 | $source_list = $this->html_preg($new_html, $project_id, $collect_info->domain, $old_info['web_url_domain'], $old_info['home_url']); | 103 | $source_list = $this->html_preg($new_html, $project_id, $collect_info->domain, $old_info['web_url_domain'], $old_info['home_url']); |
| 104 | 104 | ||
| 105 | if ($source_list) { | 105 | if ($source_list) { |
| 106 | - $html = $this->upload_source($html, $source_list, $project_id, $collect_info->domain, $old_info['web_url_domain'], $old_info['home_url']); | 106 | + $html = $this->upload_source($html, array_unique($source_list), $project_id, $collect_info->domain, $old_info['web_url_domain'], $old_info['home_url']); |
| 107 | } | 107 | } |
| 108 | } catch (\Exception $e) { | 108 | } catch (\Exception $e) { |
| 109 | $collect_info->status = CollectTask::STATUS_FAIL; | 109 | $collect_info->status = CollectTask::STATUS_FAIL; |
-
请 注册 或 登录 后发表评论