mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-04 00:24:29 +08:00
feat: 完成平台发表情况查询
This commit is contained in:
@@ -24,6 +24,11 @@ class Post extends Base
|
||||
|
||||
public const CACHE_KEY_HITS = 'cache_hits_';
|
||||
|
||||
public const LIST_POST_PLATFORM_STATUS = [
|
||||
0 => '未发表',
|
||||
1 => '已发表',
|
||||
];
|
||||
|
||||
public static $autoClearCache = [
|
||||
|
||||
];
|
||||
@@ -265,12 +270,13 @@ class Post extends Base
|
||||
return $value;
|
||||
}
|
||||
|
||||
public function getPostPlatformDataArrayAttr()
|
||||
public function getPostPlatformDataArrayAttr()
|
||||
{
|
||||
$data = $this->getData('post_platform_data');
|
||||
if (empty($data)) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return json_decode($data, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user