正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -48,7 +48,7 @@ class Message extends Api | @@ -48,7 +48,7 @@ class Message extends Api | ||
48 | $data['list'] = Db::name('message') | 48 | $data['list'] = Db::name('message') |
49 | ->where('user_id',$user_id) | 49 | ->where('user_id',$user_id) |
50 | ->whereOr('user_id','null') | 50 | ->whereOr('user_id','null') |
51 | - ->order('is_read,createtime desc') | 51 | + ->order('is_read asc,createtime desc') |
52 | ->select(); | 52 | ->select(); |
53 | foreach ($data['list'] as &$v){ | 53 | foreach ($data['list'] as &$v){ |
54 | $v['createtime'] = date('m月d日',$v['createtime']); | 54 | $v['createtime'] = date('m月d日',$v['createtime']); |
-
请 注册 或 登录 后发表评论