...
|
...
|
@@ -70,7 +70,7 @@ class GroupModel extends Model |
|
|
public function getFriendsInfo($group_id){
|
|
|
$map['t.delete_time']=null;
|
|
|
$map['t.group_id']=$group_id;
|
|
|
|
|
|
$user_id= cmf_get_current_user_id();
|
|
|
$info=db('group_text')
|
|
|
->alias('t')
|
|
|
->field('u.avatar,u.user_login,t.*,t.id as text_id')
|
...
|
...
|
@@ -82,6 +82,7 @@ class GroupModel extends Model |
|
|
->toArray();
|
|
|
foreach ($info as $k=>$v){
|
|
|
$info[$k]['like']=$this->getLIke($v['text_id']);
|
|
|
$info[$k]['is_like']=in_array($user_id,$info[$k]['like']);
|
|
|
$info[$k]['comment']=$this->getComment($v['text_id']);
|
|
|
}
|
|
|
return $info;
|
...
|
...
|
|