From 0c30decede5b14b48f07dd131f637a0a5a27a79d Mon Sep 17 00:00:00 2001 From: taoser Date: Mon, 24 May 2021 17:53:40 +0800 Subject: [PATCH] rm aip --- app/api/controller/Message.php | 38 ---------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 app/api/controller/Message.php diff --git a/app/api/controller/Message.php b/app/api/controller/Message.php deleted file mode 100644 index b130883..0000000 --- a/app/api/controller/Message.php +++ /dev/null @@ -1,38 +0,0 @@ -id; - $result = MessageTo::create(['send_id'=>$sendId,'receve_id'=>$receveId,'message_id'=>$msgId]); - if($result){ - return true; - } - } - - //receve msg - public function receveMsg($uid) - { - $msg = Db::name('message_to') - ->alias('t') - ->join('message m','t.message_id = m.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') - ->where('t.receve_id',$uid) - ->where(['t.delete_time'=>0]) - ->order(['t.create_time'=>'desc']) - ->select(); - return $msg; - } - -} \ No newline at end of file