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

修改列表

@@ -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 desc,createtime desc') 51 + ->order('is_read,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']);