Browse Source

黑名单用户不能看到朋友圈不能发消息2

master
wanghongjun 9 months ago
parent
commit
0468bfd145
  1. 3
      app/enterprise/model/User.php

3
app/enterprise/model/User.php

@ -228,12 +228,15 @@ class User extends BaseModel
$is_top = 0; $is_top = 0;
$is_notice = 1; $is_notice = 1;
$is_blacklist = 1;
if ($friend) { if ($friend) {
$is_top = $friend['is_top']; $is_top = $friend['is_top'];
$is_notice = $friend['is_notice']; $is_notice = $friend['is_notice'];
$is_blacklist = $friend['is_blacklist'];
} }
$list_chart[$k]['is_top'] = $is_top; $list_chart[$k]['is_top'] = $is_top;
$list_chart[$k]['is_notice'] = $is_notice; $list_chart[$k]['is_notice'] = $is_notice;
$list_chart[$k]['is_blacklist'] = $is_blacklist;
if ($unread) { if ($unread) {
foreach ($unread as $val) { foreach ($unread as $val) {
if ($val['from_user'] == $v['user_id']) { if ($val['from_user'] == $v['user_id']) {

Loading…
Cancel
Save