|
...
|
...
|
@@ -61,9 +61,15 @@ class KeywordLogic extends BaseLogic |
|
|
|
if($info !== false){
|
|
|
|
$this->fail('当前title已存在');
|
|
|
|
}
|
|
|
|
//TODO::不能修改路由
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_KEYWORD, $this->param['id'], $this->user['project_id']);
|
|
|
|
$this->param['route'] = $route;
|
|
|
|
//todo::通知C端生成
|
|
|
|
if(isset($this->param['is_video_keyword']) && ($this->param['is_video_keyword'] == 1)){
|
|
|
|
$info = $this->model->read(['id'=>$this->param['id']],['id','is_video_keyword','video']);
|
|
|
|
if(($info['is_video_keyword'] != $this->param['is_video_keyword']) && ($info['video'] != null || $info['video'] != '')){
|
|
|
|
$this->sendHttpC([$route]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
$data = ['id'=>$this->param['id']];
|
|
|
|
}else{
|
|
...
|
...
|
@@ -125,10 +131,11 @@ class KeywordLogic extends BaseLogic |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 批量添加关键词任务, 异步处理
|
|
|
|
* @return array
|
|
|
|
* @throws BsideGlobalException
|
|
|
|
* @throws \App\Exceptions\AsideGlobalException
|
|
|
|
* @remark :批量添加关键词任务, 异步处理
|
|
|
|
* @name :batchAdd
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/6/6 10:27
|
|
|
|
*/
|
|
|
|
public function batchAdd(){
|
|
|
|
try {
|
...
|
...
|
|