优化文章编辑分类设置

This commit is contained in:
augushong
2020-08-13 00:43:26 +08:00
parent b9b38aee87
commit cae557ac0c
4 changed files with 20 additions and 3 deletions

View File

@@ -43,6 +43,12 @@ class Post extends Model
$value = $this->getData('publish_time');
return date('Y-m-d',$value);
}
public function getPublishTimeDatetimeAttr()
{
$value = $this->getData('publish_time');
return date('Y-m-d H:i:s',$value);
}
public function getCategorysListAttr()
{