lip 3 ماه پیش
والد
کامیت
291c1f3caa
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      app/enterprise/controller/Im.php

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

@@ -266,6 +266,7 @@ class Im extends BaseController
     // 获取联系人列表
     public function getContacts()
     {
+        $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']);
         $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');