作者 刘锟

update

... ... @@ -160,6 +160,17 @@ class HtmlCollect extends Command
//437项目单词替换
$html = str_replace('Forenia', 'Tourle', $html);
}
if ($project_id == 565) {
//565项目单词替换
$html = str_replace('Screwfix', '', $html);
$html = str_replace('Fungsi', '', $html);
$html = str_replace('Turlen', '', $html);
}
if ($project_id == 2078) {
//2078项目单词替换
$html = str_replace('Broflanilide', '', $html);
$html = str_replace('broflanilide', '', $html);
}
$collect_info->html = $html;
$collect_info->status = CollectTask::STATUS_COM;
$collect_info->save();
... ...
... ... @@ -134,6 +134,10 @@ class ProjectUpdate extends Command
//565项目单词替换
$replace = ['Screwfix' => '', 'Fungsi' => '', 'Turlen' => ''];
}
if ($project_id == 2078) {
//2078项目单词替换
$replace = ['Broflanilide' => '', 'broflanilide' => ''];
}
//设置数据库
$project = ProjectServer::useProject($project_id);
... ...