|
@@ -220,7 +220,8 @@ class UserCenter extends Common
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取关注列表(个人中心模块)
|
|
|
+ * 获取关注列表
|
|
|
+ * (个人中心模块)(消息最新关注)
|
|
|
*/
|
|
|
public function getFollowsUser() {
|
|
|
$type = $this->request->request('type',1); // 1=关注,2=粉丝
|
|
@@ -239,7 +240,7 @@ class UserCenter extends Common
|
|
|
->field("a.id,a.user_id,a.createtime,u.avatar,u.nickname,u.level,u.gender")
|
|
|
->join("hx_user u","u.id = a.user_id")
|
|
|
// ->limit($pageStart,$pageNum)
|
|
|
- ->where($where)->select();
|
|
|
+ ->where($where)->order('a.id desc')->select();
|
|
|
|
|
|
// 获取粉丝列表
|
|
|
$where = [];
|
|
@@ -248,7 +249,7 @@ class UserCenter extends Common
|
|
|
->field("a.id,a.fans_id,a.createtime,u.avatar,u.nickname,u.level,u.gender")
|
|
|
->join("hx_user u","u.id = a.fans_id")
|
|
|
// ->limit($pageStart,$pageNum)
|
|
|
- ->where($where)->select();
|
|
|
+ ->where($where)->order('a.id desc')->select();
|
|
|
|
|
|
// print_r(json_encode($followlist));exit;
|
|
|
if($type == 1) {
|