lip 3 月之前
父節點
當前提交
99d463a285
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/enterprise/controller/Im.php

+ 1 - 1
app/enterprise/controller/Im.php

@@ -274,7 +274,7 @@ class Im extends BaseController
     public function getContacts()
     public function getContacts()
     {
     {
         $this->userInfo['cs_uid'] = User::where('user_id', $this->userInfo['user_id'])->value('cs_uid');
         $this->userInfo['cs_uid'] = User::where('user_id', $this->userInfo['user_id'])->value('cs_uid');
-        $data = User::getUserList($this->userInfo, [['status', '=', 1], ['user_id', '<>', $this->userInfo['user_id']]], $this->userInfo['user_id'] , '', $this->userInfo['role']);
+        $data = User::getUserList($this->userInfo, [['status', '=', 1], ['user_id', '<>', $this->userInfo['user_id']], ['service_status', '<>', 0]], $this->userInfo['user_id'] , '', $this->userInfo['role']);
         $count=Friend::where(['status'=>2,'friend_user_id'=>$this->uid])->count();
         $count=Friend::where(['status'=>2,'friend_user_id'=>$this->uid])->count();
         $time=Friend::where(['friend_user_id'=>$this->uid,'is_invite'=>1])->order('create_time desc')->value('create_time');
         $time=Friend::where(['friend_user_id'=>$this->uid,'is_invite'=>1])->order('create_time desc')->value('create_time');
         return success('', $data,$count,$time*1000);
         return success('', $data,$count,$time*1000);