Commit 786fa9fb authored by clone's avatar clone

bug

parent 8d2af252
...@@ -143,7 +143,7 @@ class ChatService ...@@ -143,7 +143,7 @@ class ChatService
*/ */
public function sendMsg($target_type, $target, $source, $is_user, $type, $msg_content, $from, $accessToken) public function sendMsg($target_type, $target, $source, $is_user, $type, $msg_content, $from, $accessToken)
{ {
//todo 之后扩展 此处有bug //fixme 之后扩展 此处有bug
/* if ($type == 3) { /* if ($type == 3) {
try { try {
$house_id = (integer)trim($msg_content); $house_id = (integer)trim($msg_content);
...@@ -224,10 +224,11 @@ class ChatService ...@@ -224,10 +224,11 @@ class ChatService
$where_agent["phone"] = array( "in", $agent_phone ); $where_agent["phone"] = array( "in", $agent_phone );
$where_agent["inuse"] = 1; $where_agent["inuse"] = 1;
$where_agent["level"] = array("in",[2,5]);
$agentsResult = $this->agentsModel->getAgentsById($field, $where_agent); $agentsResult = $this->agentsModel->getAgentsById($field, $where_agent);
foreach ($agentsResult as $v) { foreach ($agentsResult as $v) {
if ($v["user_pic"]) { if ($v["user_pic"]) {
$v["user_pic"] = TEST_ADMIN_URL_TL.'user_header/'. $v["user_pic"]; $v["user_pic"] = TEST_ADMIN_URL_TL.'user_header/'. $v["user_pic"];
} }
......
...@@ -113,7 +113,6 @@ class Agents extends Model ...@@ -113,7 +113,6 @@ class Agents extends Model
$data = $this $data = $this
->field($field) ->field($field)
->where($where_) ->where($where_)
->group("phone")
->select(); ->select();
return $data; return $data;
} }
......
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