|
...
|
...
|
@@ -173,4 +173,32 @@ class KeywordController extends BaseController |
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :批量清除关键词相关内容
|
|
|
|
* @name :batchKeywordFiled
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/4/22 10:27
|
|
|
|
*/
|
|
|
|
public function batchKeywordFiled(){
|
|
|
|
$param = [];
|
|
|
|
if(isset($this->param['keyword'])){
|
|
|
|
$param['seo_keyword'] = null;
|
|
|
|
}
|
|
|
|
if(isset($this->param['description'])){
|
|
|
|
$param['seo_description'] = null;
|
|
|
|
}
|
|
|
|
if(isset($this->param['title'])){
|
|
|
|
$param['keyword_title'] = null;
|
|
|
|
}
|
|
|
|
if(isset($this->param['content'])){
|
|
|
|
$param['keyword_content'] = null;
|
|
|
|
}
|
|
|
|
$keywordModel = new Keyword();
|
|
|
|
$rs = $keywordModel->edit($param,['id'=>['>',0]]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('保存失败,请联系管理员');
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|