作者 lyh

gx添加关键词前后缀

@@ -40,7 +40,7 @@ class AiBlogTask extends Command @@ -40,7 +40,7 @@ class AiBlogTask extends Command
40 while (true){ 40 while (true){
41 $info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first(); 41 $info = $aiBlogTaskModel->where('status',1)->orderBy('id','asc')->first();
42 if($info === false){ 42 if($info === false){
43 - sleep(20); 43 + sleep(30);
44 continue; 44 continue;
45 } 45 }
46 $info = $info->toArray(); 46 $info = $info->toArray();
@@ -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 }