|
...
|
...
|
@@ -113,6 +113,8 @@ class AiBlogAuthorTask extends Command |
|
|
|
return true;
|
|
|
|
}
|
|
|
|
$aiBlogAuthorModel = new AiBlogAuthor();
|
|
|
|
$info = $aiBlogAuthorModel->count(['project_id'=>$project_id]);
|
|
|
|
if($info === false){
|
|
|
|
foreach ($data as $v){
|
|
|
|
$param = [
|
|
|
|
'author_id'=>$v['id'],
|
|
...
|
...
|
@@ -124,6 +126,7 @@ class AiBlogAuthorTask extends Command |
|
|
|
$route = RouteMap::setRoute($v['title'], RouteMap::SOURCE_AI_BLOG_AUTHOR, $id, $project_id);
|
|
|
|
$aiBlogAuthorModel->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|