作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !1482
@@ -72,11 +72,7 @@ class AiBlogAuthorTask extends Command @@ -72,11 +72,7 @@ class AiBlogAuthorTask extends Command
72 continue; 72 continue;
73 } 73 }
74 if(empty($result['data'])){ 74 if(empty($result['data'])){
75 - $aiBlogService = new AiBlogService();  
76 - $aiBlogService->mch_id = $aiSettingInfo['mch_id'];  
77 - $aiBlogService->key = $aiSettingInfo['key'];  
78 - $create_result = $aiBlogService->createAuthor();  
79 - echo '没有作者任务:创建作者任务'.json_encode($create_result,true); 75 + echo '没有作者任务:创建作者任务'.PHP_EOL;
80 continue; 76 continue;
81 } 77 }
82 //保存当前项目ai_blog数据 78 //保存当前项目ai_blog数据
@@ -122,7 +118,7 @@ class AiBlogAuthorTask extends Command @@ -122,7 +118,7 @@ class AiBlogAuthorTask extends Command
122 return true; 118 return true;
123 } 119 }
124 $aiBlogAuthorModel = new AiBlogAuthor(); 120 $aiBlogAuthorModel = new AiBlogAuthor();
125 - $info = $aiBlogAuthorModel->counts(['project_id'=>$project_id]); 121 + $info = $aiBlogAuthorModel->counts(['id'=>['!=',0]]);
126 if($info == 0){ 122 if($info == 0){
127 echo '项目id:'.$project_id.'执行新增。'.$info; 123 echo '项目id:'.$project_id.'执行新增。'.$info;
128 foreach ($data as $v){ 124 foreach ($data as $v){