|
@@ -35,6 +35,12 @@ class AiBlogController extends BaseController |
|
@@ -35,6 +35,12 @@ class AiBlogController extends BaseController |
|
35
|
*/
|
35
|
*/
|
|
36
|
public function getAiBlog(AiBlog $aiBlog){
|
36
|
public function getAiBlog(AiBlog $aiBlog){
|
|
37
|
$lists = $aiBlog->lists($this->map,$this->page,$this->row,'id',['id','new_title','task_id','status','created_at','updated_at']);
|
37
|
$lists = $aiBlog->lists($this->map,$this->page,$this->row,'id',['id','new_title','task_id','status','created_at','updated_at']);
|
|
|
|
38
|
+ if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
39
|
+ foreach ($lists['list'] as $k => $v){
|
|
|
|
40
|
+ $v['image'] = getImageUrl($v['url'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
41
|
+ $lists['list'][$k] = $v;
|
|
|
|
42
|
+ }
|
|
|
|
43
|
+ }
|
|
38
|
$this->response('success',Code::SUCCESS,$lists);
|
44
|
$this->response('success',Code::SUCCESS,$lists);
|
|
39
|
}
|
45
|
}
|
|
40
|
|
46
|
|