Browse Source

系统消息列表

lizhen_gitee 1 year ago
parent
commit
0845eff359
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/api/controller/Message.php

+ 3 - 3
application/api/controller/Message.php

@@ -106,10 +106,10 @@ class Message extends Api
         }
 
         //循环全部已读
-        $list = Db::name('message_sys')->column('id');
-        if(!empty($list)){
+        $list2 = Db::name('message_sys')->column('id');
+        if(!empty($list2)){
             $newall = [];
-            foreach($list as $key => $msg_id){
+            foreach($list2 as $key => $msg_id){
                 $newall[] = [
                     'user_id' => $this->auth->id,
                     'msg_id' => $msg_id,