Commit c5ecc85a authored by zhuwei's avatar zhuwei

1

parent f531b820
......@@ -290,6 +290,8 @@ class User extends Basic
$return_user_list[$k]['user_phone'] = substr_replace($return_user_list[$k]['user_phone'], '****', 3, 4);
$return_user_list[$k]['site_ids_name'] = $user_service->userSiteName($v["site_ids"]);
$return_user_list[$k]['user_name'] = $v['user_name']?"[{$v['concrete_industry']}]{$v['user_name']}":'';
}
......
......@@ -210,7 +210,6 @@ class AppChat extends Basic
if (true !== $checkResult) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, $checkResult);
}
$user_name = isset($params['user_name']) ? $params['user_name'] : $params['from'];//用户昵称
$target_type = $params['target_type']; // 消息类型 users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息
$target = $params['target']; //接受人 if target_type 群 者表示群id
......@@ -224,6 +223,7 @@ class AppChat extends Basic
}
$result = $this->_chat->sendMsg($user_name, $target_type, $target, $source, $is_user, $type, $msg_content, $from);
if ($result) {
return $this->response("200", "", ["msg" => "消息发送成功"]);
} else {
......
......@@ -96,7 +96,7 @@ class ChatUserExt extends BaseModel
->order('update_time DESC')
->limit($limit)
->select();
//echo $this->getLastSql();
// echo $this->getLastSql();
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