作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改升序

@@ -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']);