dever 4 years ago
parent
commit
5042bf2937

+ 3 - 3
app/community/lib/Chat.php

@@ -50,7 +50,7 @@ class Chat
 				$where['uid'] = $v['uid'];
 				$where['collection_id'] = $collection_id;
 				$chat = Dever::db('community/chat_info')->getNew($where);
-				$user[$k]['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id);
+				$user[$k]['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id, true);
 
 				if ($chat) {
 					if ($chat['pic'] && !$chat['text']) {
@@ -80,8 +80,8 @@ class Chat
 		$data['chat'] = Dever::db('community/chat_info')->getAll($where);
 
 		if ($data['chat']) {
-			$data['user'][$uid] = Dever::load('user/lib/info')->get($uid, $collection_id);
-			$data['user'][$to_uid] = Dever::load('user/lib/info')->get($to_uid, $collection_id);
+			$data['user'][$uid] = Dever::load('user/lib/info')->get($uid, $collection_id, true);
+			$data['user'][$to_uid] = Dever::load('user/lib/info')->get($to_uid, $collection_id, true);
 			$data['title'] = $data['user'][$to_uid]['username'];
 			foreach ($data['chat'] as $k => $v) {
 				$data['chat'][$k]['date'] = Dever::load('collection/lib/times')->getDate($v['day'], $v['cdate'], $times);

+ 1 - 1
app/community/lib/Comment.php

@@ -22,7 +22,7 @@ class Comment
                     $data['info'][$k]['pic'] = explode(',', $v['pic']);
                 }
                 if ($user) {
-                    $data['info'][$k]['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id);
+                    $data['info'][$k]['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id, true);
                     $data['info'][$k]['cdate_string'] = Dever::mdate($v['cdate'], 2);
                 }
             }

+ 1 - 1
app/community/lib/Info.php

@@ -151,7 +151,7 @@ class Info
         # 获取引用的数据
         $info['to_user'] = array();
         if ($info['to_uid']) {
-            $info['to_user'] = Dever::load('user/lib/info')->get($info['to_uid'], $collection_id);
+            $info['to_user'] = Dever::load('user/lib/info')->get($info['to_uid'], $collection_id, true);
         }
 
         # 获取热门的子信息

+ 1 - 1
app/community/lib/Tips.php

@@ -24,7 +24,7 @@ class Tips
                     $temp['pic'] = explode(',', $v['pic']);
                 }
                 if ($user) {
-                    $temp['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id);
+                    $temp['user'] = Dever::load('user/lib/info')->get($v['uid'], $collection_id, true);
                     $temp['cdate_string'] = Dever::mdate($v['cdate'], 2);
                 }