Browse Source

拉黑状态修改

master
wanghongjun 7 months ago
parent
commit
12de8b2ca0
  1. 4
      app/enterprise/model/Message.php
  2. 2
      app/enterprise/model/User.php

4
app/enterprise/model/Message.php

@ -105,11 +105,11 @@ class Message extends BaseModel
$this->error=lang('im.friendNot'); $this->error=lang('im.friendNot');
return false; return false;
} }
if ($friend['is_blacklist'] == 0) { if ($friend['is_blacklist'] == 1) {
$this->error=lang('im.blacklist'); $this->error=lang('im.blacklist');
return false; return false;
} }
if ($otherFriend['is_blacklist'] == 0) { if ($otherFriend['is_blacklist'] == 1) {
$this->error=lang('im.blacklist'); $this->error=lang('im.blacklist');
return false; return false;
} }

2
app/enterprise/model/User.php

@ -234,7 +234,7 @@ class User extends BaseModel
$is_top = 0; $is_top = 0;
$is_notice = 1; $is_notice = 1;
$is_blacklist = 1; $is_blacklist = 0;
if ($friend) { if ($friend) {
$is_top = $friend['is_top']; $is_top = $friend['is_top'];
$is_notice = $friend['is_notice']; $is_notice = $friend['is_notice'];

Loading…
Cancel
Save