mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
完成防采集版权声明;
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace app\model;
|
||||
|
||||
use app\common\model\Base;
|
||||
use app\common\tools\PostShow;
|
||||
use think\facade\Cache;
|
||||
use think\facade\Request;
|
||||
use think\Model;
|
||||
@@ -151,6 +152,14 @@ class Post extends Base
|
||||
return trim($value);
|
||||
}
|
||||
|
||||
public function getContentHtmlShowAttr()
|
||||
{
|
||||
|
||||
$content = $this->getAttr('content_html');
|
||||
|
||||
return PostShow::handleCopyright($content);
|
||||
}
|
||||
|
||||
public function getContentAttr($value)
|
||||
{
|
||||
return json_decode($value, true);
|
||||
|
||||
Reference in New Issue
Block a user