lizhen_gitee 2 månader sedan
förälder
incheckning
71d2e5a04b
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      application/api/controller/Message.php

+ 2 - 0
application/api/controller/Message.php

@@ -15,7 +15,9 @@ class Message extends Api
     //消息页信息
     //消息页信息
     public function index(){
     public function index(){
         $rs = [
         $rs = [
+            'msg_first'      => Db::name('message')->where('user_id',$this->auth->id)->order('id desc')->find(),
             'msg_unread_num' => Db::name('message')->where('user_id',$this->auth->id)->where('status',0)->count(),
             'msg_unread_num' => Db::name('message')->where('user_id',$this->auth->id)->where('status',0)->count(),
+            'msgsys_first'   => Db::name('message_sys')->order('id desc')->find(),
         ];
         ];
 
 
         //系统消息未读数量
         //系统消息未读数量