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