|
...
|
...
|
@@ -74,7 +74,7 @@ class AiBlogController extends BaseController |
|
|
|
$lists = $aiBlog->lists($this->map,$this->page,$this->row,'id',['id','new_title','image','task_id','status','created_at','updated_at']);
|
|
|
|
if(!empty($lists) && !empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['image'] = getImageUrl($v['image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
$v['image'] = getImageUrl($v['image']);
|
|
|
|
$lists['list'][$k] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -133,4 +133,21 @@ class AiBlogController extends BaseController |
|
|
|
$info['image'] = getImageUrl($info['image']);
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取详情数据
|
|
|
|
* @name :getAuthorInfo
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/2/21 13:54
|
|
|
|
*/
|
|
|
|
public function saveBlogAuthor(AiBlogLogic $aiBlogLogic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required'],
|
|
|
|
],[
|
|
|
|
'id.required' => '主键不能为空',
|
|
|
|
]);
|
|
|
|
$info = $aiBlogLogic->saveBlogAuthor();
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|