|
...
|
...
|
@@ -64,7 +64,7 @@ class AiBlogController extends BaseController |
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['image'] = getImageUrl($v['image']);
|
|
|
|
$v['route'] = $this->user['domain'] . '/ai_blog/' . $v['route'];
|
|
|
|
$v['route'] = $this->user['domain'] . '/' . $v['route'];
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -101,6 +101,13 @@ class AiBlogController extends BaseController |
|
|
|
public function getAiBlogAuthor(AiBlogAuthor $aiBlogAuthor){
|
|
|
|
$field = ['id','route','author_id','title','image','created_at','updated_at'];
|
|
|
|
$lists = $aiBlogAuthor->lists($this->map,$this->page,$this->row,'id',$field);
|
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['image'] = getImageUrl($v['image']);
|
|
|
|
$v['route'] = $this->user['domain'] . '/' . $v['route'];
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -162,6 +169,12 @@ class AiBlogController extends BaseController |
|
|
|
*/
|
|
|
|
public function getAiBlogList(AiBlogList $aiBlogList){
|
|
|
|
$lists = $aiBlogList->lists($this->map,$this->page,$this->row,'id',['id','route','created_at','updated_at']);
|
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['route'] = $this->user['domain'] . '/ai_blogs/' . $v['route'];
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|