This commit is contained in:
toogee 2020-03-29 20:23:52 +08:00
parent ab36164034
commit 2b6e8d2209

View File

@ -18,7 +18,6 @@ class Message
if($result){ if($result){
return true; return true;
} }
} }
//receve msg //receve msg
@ -30,7 +29,8 @@ class Message
->join('user u','t.send_id = u.id') ->join('user u','t.send_id = u.id')
->field('t.id as id,name,title,link,receve_id,t.create_time as create_time,is_read') ->field('t.id as id,name,title,link,receve_id,t.create_time as create_time,is_read')
->where('t.receve_id',$uid) ->where('t.receve_id',$uid)
->where('t.delete_time',0) ->where(['t.delete_time'=>0])
->order(['t.create_time'=>'desc'])
->select(); ->select();
return $msg; return $msg;
} }