|
...
|
...
|
@@ -41,6 +41,22 @@ class UpdateController extends BaseController |
|
|
|
], [
|
|
|
|
'project_id.required' => 'project_id不能为空',
|
|
|
|
]);
|
|
|
|
$info = getDeployOptimize($this->param['project_id']);
|
|
|
|
if (empty($info['main_keyword'])) {
|
|
|
|
$this->fail('项目核心关键词未设置');
|
|
|
|
}
|
|
|
|
if (empty($info['company_en_name'])) {
|
|
|
|
$this->fail('公司英文全称未设置');
|
|
|
|
}
|
|
|
|
if (empty($info['company_en_description'])) {
|
|
|
|
$this->fail('公司英文描述未设置');
|
|
|
|
}
|
|
|
|
if (empty($info['keyword_prefix'])) {
|
|
|
|
$this->fail('前缀关键词未设置');
|
|
|
|
}
|
|
|
|
if (empty($info['keyword_suffix'])) {
|
|
|
|
$this->fail('后缀关键词未设置');
|
|
|
|
}
|
|
|
|
try {
|
|
|
|
ProjectUpdateTdk::add_task($this->param['project_id']);
|
|
|
|
} catch (\Exception $e) {
|
...
|
...
|
|