dever 5 rokov pred
rodič
commit
a51e454ab5
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      main/src/User.php

+ 2 - 2
main/src/User.php

@@ -38,7 +38,7 @@ class User extends Core
             $this->data['user']['score'] = $score_num;
 
             # 查看当前用户的消息
-            $this->data['user_msg'] = Dever::load('message/lib/data')->num($this->data['uid']);
+            $this->data['user_msg'] = Dever::load('message/lib/data')->num($this->data['uid'], $this->data['system']);
         }
 
         return $this->data;
@@ -47,7 +47,7 @@ class User extends Core
     # 我的消息页面
     public function my_msg()
     {
-        $this->data['msg'] = Dever::load('message/lib/data')->read($this->data['uid'], false, true, false);
+        $this->data['msg'] = Dever::load('message/lib/data')->read($this->data['uid'], false, true, false, $this->data['system']);
 
         if ($this->data['msg']) {
             foreach ($this->data['msg'] as $k => $v) {