作者 刘锟

合并分支 'akun' 到 'master'

Akun



查看合并请求 !242
@@ -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;