Skip to content

Commit 4b3a912

Browse files
committed
排序
1 parent 78cebc6 commit 4b3a912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/Extend.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ public function getProfile()
6161
*/
6262
public static function top($field, $limit)
6363
{
64-
return static::find()->with('user')->orderBy([$field => SORT_DESC, 'last_visit' => SORT_DESC])->limit($limit)->all();
64+
return static::find()->with('user')->with('profile')->orderBy([$field => SORT_DESC, 'last_visit' => SORT_DESC])->limit($limit)->all();
6565
}
6666
}

0 commit comments

Comments
 (0)