Commit 8d2af252 authored by clone's avatar clone

bug

parent ba12af33
...@@ -143,8 +143,8 @@ class ChatService ...@@ -143,8 +143,8 @@ 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
if ($type == 3) { /* if ($type == 3) {
try { try {
$house_id = (integer)trim($msg_content); $house_id = (integer)trim($msg_content);
$HouseInfoModel = new HouseInfos(); $HouseInfoModel = new HouseInfos();
...@@ -158,7 +158,7 @@ class ChatService ...@@ -158,7 +158,7 @@ class ChatService
} }
//todo 判断是否创建关系没有则保存 //todo 判断是否创建关系没有则保存
$this->verifyRelation($target, $from); $this->verifyRelation($target, $from);*/
$this->insertMsg($target_type, $target, $source, $is_user, $type, $msg_content, $from); $this->insertMsg($target_type, $target, $source, $is_user, $type, $msg_content, $from);
$rPush = new RPush(); $rPush = new RPush();
...@@ -229,7 +229,7 @@ class ChatService ...@@ -229,7 +229,7 @@ class ChatService
foreach ($agentsResult as $v) { foreach ($agentsResult as $v) {
if ($v["user_pic"]) { if ($v["user_pic"]) {
$v["user_pic"] = IMG_PATH . $v["user_pic"]; $v["user_pic"] = TEST_ADMIN_URL_TL.'user_header/'. $v["user_pic"];
} }
$v["only_id"] = $chat_user_arr [$v["user_phone"]]; $v["only_id"] = $chat_user_arr [$v["user_phone"]];
......
...@@ -13,9 +13,10 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/'); ...@@ -13,9 +13,10 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
define('LOCAL_IMG_HOST','/resource/lib/Attachments/'); define('LOCAL_IMG_HOST','/resource/lib/Attachments/');
define('PAGESIZE', 15); //分页每页条数 define('PAGESIZE', 15); //分页每页条数
define('ADMIN_URL_TL','https://admin.tonglianjituan.com/'); //B端网址 define('ADMIN_URL_TL','https://admin.tonglianjituan.com/'); //B端网址
define('TEST_ADMIN_URL_TL','https://dev.tonglianjituan.com/'); //B端网址
define('CURRENT_URL', 'http://'.$_SERVER['HTTP_HOST'].DS); //取当前域名地址 define('CURRENT_URL', 'http://'.$_SERVER['HTTP_HOST'].DS); //取当前域名地址
define('HEADERIMGURL', CURRENT_URL . 'static'. DS . 'head_portrait/'); //头像地址 define('HEADERIMGURL', CURRENT_URL . 'static'. DS . 'head_portrait/'); //头像地址
define('CHAT_IMG_URL', CURRENT_URL . 'static'. DS . 'chat_image/'); //头像地址 define('CHAT_IMG_URL', CURRENT_URL . 'static'. DS . 'chat_image/'); //聊天图片地址
define('CK_IMG_URL', CURRENT_URL . '/resource/lib/Attachments/'); //ck 资源文件 define('CK_IMG_URL', CURRENT_URL . '/resource/lib/Attachments/'); //ck 资源文件
return [ return [
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
......
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