Commit dab41c85 authored by clone's avatar clone Committed by hujun

bug

parent b270b621
...@@ -95,8 +95,7 @@ class ChatService ...@@ -95,8 +95,7 @@ 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) > 0 && $agentsResult[0]['id'] > 0)
if ($agentsResult[0]['id'] > 0)
$onlyId = self::SOURCE_TYPE_AGENT . $userId; $onlyId = self::SOURCE_TYPE_AGENT . $userId;
break; break;
case 2: case 2:
......
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