阶段更新
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user