作者 刘锟

update

@@ -36,9 +36,6 @@ class SplicePrefix extends Command @@ -36,9 +36,6 @@ class SplicePrefix extends Command
36 */ 36 */
37 public function handle() 37 public function handle()
38 { 38 {
39 - $this->output('project start: ' . 4410); #6 23 38 41 46 47 49  
40 - $this->bind(4410);  
41 - dd('end');  
42 #TODO 获取当日不达标项目, 检查关键词前缀拼接 39 #TODO 获取当日不达标项目, 检查关键词前缀拼接
43 $project_ids = $this->getProject(); 40 $project_ids = $this->getProject();
44 if (empty($project_ids)) 41 if (empty($project_ids))
@@ -171,6 +171,10 @@ class HtmlCollect extends Command @@ -171,6 +171,10 @@ class HtmlCollect extends Command
171 $html = str_replace('Broflanilide', '', $html); 171 $html = str_replace('Broflanilide', '', $html);
172 $html = str_replace('broflanilide', '', $html); 172 $html = str_replace('broflanilide', '', $html);
173 } 173 }
  174 + if ($project_id == 587) {
  175 + //437项目单词替换
  176 + $html = str_replace('Horny Goat Weed', 'Icariin', $html);
  177 + }
174 $collect_info->html = $html; 178 $collect_info->html = $html;
175 $collect_info->status = CollectTask::STATUS_COM; 179 $collect_info->status = CollectTask::STATUS_COM;
176 $collect_info->save(); 180 $collect_info->save();
@@ -138,6 +138,10 @@ class ProjectUpdate extends Command @@ -138,6 +138,10 @@ class ProjectUpdate extends Command
138 //2078项目单词替换 138 //2078项目单词替换
139 $replace = ['Broflanilide' => '', 'broflanilide' => '']; 139 $replace = ['Broflanilide' => '', 'broflanilide' => ''];
140 } 140 }
  141 + if ($project_id == 587) {
  142 + //587项目单词替换
  143 + $replace = ['Horny Goat Weed' => 'Icariin'];
  144 + }
141 145
142 //设置数据库 146 //设置数据库
143 $project = ProjectServer::useProject($project_id); 147 $project = ProjectServer::useProject($project_id);