|
...
|
...
|
@@ -100,6 +100,7 @@ class BlogLogic extends BaseLogic |
|
|
|
$blogLabelLogic = new BlogLabelLogic();
|
|
|
|
$info['label_name'] = $blogLabelLogic->getLabelName($info['label_id']);
|
|
|
|
$info['image_link'] = getImageUrl($info['image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
$info['og_image'] = getImageUrl($info['og_image'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -183,6 +184,12 @@ class BlogLogic extends BaseLogic |
|
|
|
}else{
|
|
|
|
$param['category_id'] = '';
|
|
|
|
}
|
|
|
|
if(isset($param['image'])){
|
|
|
|
$param['image'] = str_replace_url($param['image'] ?? '');
|
|
|
|
}
|
|
|
|
if(isset($param['og_image'])){
|
|
|
|
$param['og_image'] = str_replace_url($param['og_image'] ?? '');
|
|
|
|
}
|
|
|
|
if(isset($this->param['release_at']) && !empty(($this->param['release_at'])) && ($this->param['status'] == 3)){
|
|
|
|
if($this->param['release_at'] < date('Y-m-d 23:59:59')){
|
|
|
|
$this->fail('发布时间需大于当天');
|
...
|
...
|
|