|
@@ -34,10 +34,11 @@ class KeywordPrefixLogic extends BaseLogic |
|
@@ -34,10 +34,11 @@ class KeywordPrefixLogic extends BaseLogic |
|
34
|
$data = [
|
34
|
$data = [
|
|
35
|
'project_id'=>$this->param['project_id'] ?? 0,
|
35
|
'project_id'=>$this->param['project_id'] ?? 0,
|
|
36
|
'keyword'=>$v,
|
36
|
'keyword'=>$v,
|
|
37
|
- 'type'=>$this->param['type']
|
37
|
+ 'type'=>$this->param['type'],
|
|
38
|
];
|
38
|
];
|
|
39
|
$prefixInfo = $this->model->read($data);
|
39
|
$prefixInfo = $this->model->read($data);
|
|
40
|
if($prefixInfo == false){
|
40
|
if($prefixInfo == false){
|
|
|
|
41
|
+ $data['remark'] = $this->param['remark'] ?? '';
|
|
41
|
$this->model->add($data);
|
42
|
$this->model->add($data);
|
|
42
|
}
|
43
|
}
|
|
43
|
}
|
44
|
}
|