合并分支 'master-server' 到 'master'
gx创建作者 查看合并请求 !1209
正在显示
4 个修改的文件
包含
7 行增加
和
4 行删除
| @@ -77,6 +77,8 @@ class AiBlogListTask extends Command | @@ -77,6 +77,8 @@ class AiBlogListTask extends Command | ||
| 77 | ProjectServer::useProject($v['project_id']); | 77 | ProjectServer::useProject($v['project_id']); |
| 78 | $aiBlogListModel = new AiBlogList(); | 78 | $aiBlogListModel = new AiBlogList(); |
| 79 | if(!empty($saveData)){ | 79 | if(!empty($saveData)){ |
| 80 | + //写一条路由信息 | ||
| 81 | + RouteMap::setRoute('ai_blogs',RouteMap::SOURCE_AI_BLOG_LIST,0,$v['project_id']); | ||
| 80 | $aiBlogListModel->truncate(); | 82 | $aiBlogListModel->truncate(); |
| 81 | $aiBlogListModel->insertAll($saveData); | 83 | $aiBlogListModel->insertAll($saveData); |
| 82 | } | 84 | } |
| @@ -64,7 +64,7 @@ class AiBlogController extends BaseController | @@ -64,7 +64,7 @@ class AiBlogController extends BaseController | ||
| 64 | if(!empty($lists) && !empty($lists['list'])){ | 64 | if(!empty($lists) && !empty($lists['list'])){ |
| 65 | foreach ($lists['list'] as $k => $v){ | 65 | foreach ($lists['list'] as $k => $v){ |
| 66 | $v['image'] = getImageUrl($v['image']); | 66 | $v['image'] = getImageUrl($v['image']); |
| 67 | - $v['route'] = $this->user['domain'] . '/' . $v['route']; | 67 | + $v['route'] = $this->user['domain'] . '/blog/' . $v['route']; |
| 68 | $lists['list'][$k] = $v; | 68 | $lists['list'][$k] = $v; |
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| @@ -104,7 +104,7 @@ class AiBlogController extends BaseController | @@ -104,7 +104,7 @@ class AiBlogController extends BaseController | ||
| 104 | if(!empty($lists) && !empty($lists['list'])){ | 104 | if(!empty($lists) && !empty($lists['list'])){ |
| 105 | foreach ($lists['list'] as $k => $v){ | 105 | foreach ($lists['list'] as $k => $v){ |
| 106 | $v['image'] = getImageUrl($v['image']); | 106 | $v['image'] = getImageUrl($v['image']); |
| 107 | - $v['route'] = $this->user['domain'] . '/' . $v['route']; | 107 | + $v['route'] = $this->user['domain'] . '/user/' . $v['route']; |
| 108 | $lists['list'][$k] = $v; | 108 | $lists['list'][$k] = $v; |
| 109 | } | 109 | } |
| 110 | } | 110 | } |
| @@ -171,7 +171,7 @@ class AiBlogController extends BaseController | @@ -171,7 +171,7 @@ class AiBlogController extends BaseController | ||
| 171 | $lists = $aiBlogList->lists($this->map,$this->page,$this->row,'id',['id','route','created_at','updated_at']); | 171 | $lists = $aiBlogList->lists($this->map,$this->page,$this->row,'id',['id','route','created_at','updated_at']); |
| 172 | if(!empty($lists) && !empty($lists['list'])){ | 172 | if(!empty($lists) && !empty($lists['list'])){ |
| 173 | foreach ($lists['list'] as $k => $v){ | 173 | foreach ($lists['list'] as $k => $v){ |
| 174 | - $v['route'] = $this->user['domain'] . '/ai_blogs/' . $v['route']; | 174 | + $v['route'] = $this->user['domain'] . '/top-blog/' . $v['route']; |
| 175 | $lists['list'][$k] = $v; | 175 | $lists['list'][$k] = $v; |
| 176 | } | 176 | } |
| 177 | } | 177 | } |
| @@ -99,7 +99,7 @@ class AiBlogLogic extends BaseLogic | @@ -99,7 +99,7 @@ class AiBlogLogic extends BaseLogic | ||
| 99 | $aiBlogService = new AiBlogService(); | 99 | $aiBlogService = new AiBlogService(); |
| 100 | $aiBlogService->mch_id = $aiSettingInfo['mch_id']; | 100 | $aiBlogService->mch_id = $aiSettingInfo['mch_id']; |
| 101 | $aiBlogService->key = $aiSettingInfo['key']; | 101 | $aiBlogService->key = $aiSettingInfo['key']; |
| 102 | - $aiBlogService->route = generateRoute(Translate::tran($this->param['title'], 'en')); | 102 | + $aiBlogService->route = generateRoute(Translate::tran($this->param['keyword'], 'en')); |
| 103 | $result = $aiBlogService->createTask($this->param['keyword'],$this->param['type']); | 103 | $result = $aiBlogService->createTask($this->param['keyword'],$this->param['type']); |
| 104 | if($result['status'] == 200){ | 104 | if($result['status'] == 200){ |
| 105 | $aiBlogTaskModel = new AiBlogTask(); | 105 | $aiBlogTaskModel = new AiBlogTask(); |
| @@ -35,6 +35,7 @@ class RouteMap extends Base | @@ -35,6 +35,7 @@ class RouteMap extends Base | ||
| 35 | const SOURCE_MODULE = 'module'; | 35 | const SOURCE_MODULE = 'module'; |
| 36 | const SOURCE_AI_BLOG = 'ai_blog'; | 36 | const SOURCE_AI_BLOG = 'ai_blog'; |
| 37 | const SOURCE_AI_BLOG_AUTHOR = 'ai_blog_author';//ai博客作者 | 37 | const SOURCE_AI_BLOG_AUTHOR = 'ai_blog_author';//ai博客作者 |
| 38 | + const SOURCE_AI_BLOG_LIST = 'ai_blog_list'; | ||
| 38 | //自定义模块分类 | 39 | //自定义模块分类 |
| 39 | const SOURCE_MODULE_CATE = 'module_category'; | 40 | const SOURCE_MODULE_CATE = 'module_category'; |
| 40 | 41 |
-
请 注册 或 登录 后发表评论