阶段更新

This commit is contained in:
2021-12-08 10:39:31 +08:00
parent 97a6d9a182
commit f62a57deb4
10 changed files with 1105 additions and 960 deletions

View File

@@ -205,3 +205,22 @@ function dateLocalMonth($m): string
}
/**
* Notes: 获取
*
* @Author: 玄尘
* @Date: 2021/12/8 10:31
* @param $article_id
*/
function getOneArticle($article_id, $key): string
{
$info = Article::find($article_id);
if ($info) {
if ($key) {
return $info->{$key};
}
}
return '';
}