正在显示
1 个修改的文件
包含
19 行增加
和
0 行删除
| @@ -66,6 +66,25 @@ class CreateKeywordLogic extends BaseLogic | @@ -66,6 +66,25 @@ class CreateKeywordLogic extends BaseLogic | ||
| 66 | * @time :2023/12/19 10:48 | 66 | * @time :2023/12/19 10:48 |
| 67 | */ | 67 | */ |
| 68 | public function createKeyword(){ | 68 | public function createKeyword(){ |
| 69 | + $data = array(); | ||
| 70 | + $prefix = $this->param['prefix']; | ||
| 71 | + $suffix = $this->param['suffix']; | ||
| 72 | + $keyword = $this->param['keyword']; | ||
| 73 | + if(!empty($this->param['keyword'])){ | ||
| 74 | + return $this->success($data); | ||
| 75 | + } | ||
| 76 | + $prefix_keyword = []; | ||
| 77 | + if(!empty($this->param['prefix'])){//前缀+关键词 | ||
| 78 | + foreach ($this->param['keyword'] as $keywordItem){ | ||
| 79 | + foreach ($this->param['prefix'] as $prefixItem) { | ||
| 80 | + $prefix_keyword[] =$prefixItem.'-'.$keywordItem; | ||
| 81 | + } | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + if(!empty($this->param['suffix'])){//后缀加关键词 | ||
| 85 | + foreach ($this->param['suffix'] as $v){ | ||
| 69 | 86 | ||
| 70 | } | 87 | } |
| 88 | + } | ||
| 89 | + } | ||
| 71 | } | 90 | } |
-
请 注册 或 登录 后发表评论