正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -71,7 +71,11 @@ class AiBlogAuthorTask extends Command | @@ -71,7 +71,11 @@ class AiBlogAuthorTask extends Command | ||
| 71 | continue; | 71 | continue; |
| 72 | } | 72 | } |
| 73 | if(empty($result['data'])){ | 73 | if(empty($result['data'])){ |
| 74 | - echo '错误:'.json_encode($result,true); | 74 | + $aiBlogService = new AiBlogService(); |
| 75 | + $aiBlogService->mch_id = $aiSettingInfo['mch_id']; | ||
| 76 | + $aiBlogService->key = $aiSettingInfo['key']; | ||
| 77 | + $create_result = $aiBlogService->createAuthor(); | ||
| 78 | + echo '没有作者任务:创建作者任务'.json_encode($create_result,true); | ||
| 75 | continue; | 79 | continue; |
| 76 | } | 80 | } |
| 77 | //保存当前项目ai_blog数据 | 81 | //保存当前项目ai_blog数据 |
-
请 注册 或 登录 后发表评论