调整页面

This commit is contained in:
2020-09-18 13:45:13 +08:00
parent 46d12cbf68
commit b8024dcace
14 changed files with 268 additions and 50 deletions

View File

@@ -28,7 +28,10 @@ function getOneCategory($categoryId, $return = '')
*/
function getOneArticleBYCate($categoryId, $result = '')
{
$info = Article::where('category_id', $categoryId)->latest('sort')->latest()->first();
$info = Article::where('category_id', $categoryId)
->latest('sort')
->latest()
->first();
if ($info) {
if ($result) {