|
...
|
...
|
@@ -208,6 +208,7 @@ class CNoticeController extends BaseController |
|
|
|
* 更新通知C端
|
|
|
|
* @param Request $request
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
* @param : type : 1->主站更新 4->聚合页更新
|
|
|
|
*/
|
|
|
|
public function sendNotify(Request $request)
|
|
|
|
{
|
|
...
|
...
|
@@ -217,6 +218,13 @@ class CNoticeController extends BaseController |
|
|
|
$url = $request->input('url', []);
|
|
|
|
$language = $request->input('language', []);
|
|
|
|
$is_sitemap = intval($request->input('is_sitemap', 0));
|
|
|
|
if($type == 4){//代表聚合页更新
|
|
|
|
$keywordModel = new Keyword();
|
|
|
|
$keywordInfo = $keywordModel->whereNull('seo_title')->orWhereNull('seo_keywords')->orWhereNull('seo_description')->first();
|
|
|
|
if(!empty($keywordInfo)){
|
|
|
|
$this->fail('TDK不全,禁止提交。');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//获取项目所在服务器
|
|
|
|
$project_model = new Project();
|
|
|
|
$project_info = $project_model->read(['id'=>$project_id],['serve_id','is_upgrade', 'main_lang_id']);
|
|
...
|
...
|
@@ -239,7 +247,6 @@ class CNoticeController extends BaseController |
|
|
|
$this->fail('当前升级项目还有页面正在采集,请采集完成之后再更新静态页面');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if($servers_id == ServerConfig::SELF_SITE_ID){
|
|
|
|
//自建站服务器:如果项目已经上线,不请求C端接口,数据直接入库
|
|
|
|
$domain_model = new DomainInfo();
|
...
|
...
|
|