mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
优化查询代码;增加RSS1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user