优化查询代码;增加RSS1

This commit is contained in:
2023-03-02 09:43:25 +08:00
parent 76b123aa53
commit 138708182b
6 changed files with 138 additions and 7 deletions

View File

@@ -98,6 +98,15 @@ class Post extends Base
return $list;
}
public function getDescAttr($value)
{
if(empty($value)){
}
return $value;
}
public function getDescShortAttr()
{
$desc = $this->getData('desc');
@@ -181,8 +190,9 @@ class Post extends Base
public function getReadUrlAttr()
{
$path = '/index/a' . $this->getData('uid') . '.html';
return Request::domain() . '/index/a' . $this->getData('uid') . '.html';
return Request::domain() . $path;
}
public function getShareTextAttr()
@@ -195,4 +205,4 @@ class Post extends Base
return $share_text;
}
}
}