Commit a29123fe authored by clone's avatar clone

bug

parent 0e0b0b6f
...@@ -70,9 +70,9 @@ class AppChat extends Basic ...@@ -70,9 +70,9 @@ class AppChat extends Basic
public function userChat() public function userChat()
{ {
/* $params = array( /* $params = array(
"user_id" => 1, "user_id" => 10,
"mobile" => "15720682761", "mobile" => "15821506182",
"source" => 2 //1经纪人 2用户 "source" => 1 //1经纪人 2用户
);*/ );*/
$params = $this->params; $params = $this->params;
......
...@@ -94,7 +94,8 @@ class ChatService ...@@ -94,7 +94,8 @@ class ChatService
$where_["inuse"] = 1; $where_["inuse"] = 1;
$where_["id"] = $userId; $where_["id"] = $userId;
$agentsResult = $this->agentsModel->getAgentsById("id", $where_); $agentsResult = $this->agentsModel->getAgentsById("id", $where_);
if (count($agentsResult) > 1)
if ($agentsResult -> id > 0)
$onlyId = self::SOURCE_TYPE_AGENT . $userId; $onlyId = self::SOURCE_TYPE_AGENT . $userId;
break; break;
case 2: case 2:
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
# http://curl.haxx.se/docs/http-cookies.html # http://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk. # This file was generated by libcurl! Edit at your own risk.
a1.easemob.com FALSE / FALSE 1516852769 rememberMe deleteMe a1.easemob.com FALSE / FALSE 1516860430 rememberMe deleteMe
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment