Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
8d2af252
Commit
8d2af252
authored
Feb 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
ba12af33
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
ChatService.php
application/chat/service/ChatService.php
+4
-4
config.php
application/config.php
+2
-1
No files found.
application/chat/service/ChatService.php
View file @
8d2af252
...
...
@@ -143,8 +143,8 @@ class ChatService
*/
public
function
sendMsg
(
$target_type
,
$target
,
$source
,
$is_user
,
$type
,
$msg_content
,
$from
,
$accessToken
)
{
if
(
$type
==
3
)
{
//todo 之后扩展 此处有bug
/*
if ($type == 3) {
try {
$house_id = (integer)trim($msg_content);
$HouseInfoModel = new HouseInfos();
...
...
@@ -158,7 +158,7 @@ class ChatService
}
//todo 判断是否创建关系没有则保存
$this
->
verifyRelation
(
$target
,
$from
);
$this->verifyRelation($target, $from);
*/
$this
->
insertMsg
(
$target_type
,
$target
,
$source
,
$is_user
,
$type
,
$msg_content
,
$from
);
$rPush
=
new
RPush
();
...
...
@@ -229,7 +229,7 @@ class ChatService
foreach
(
$agentsResult
as
$v
)
{
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"
]];
...
...
application/config.php
View file @
8d2af252
...
...
@@ -13,9 +13,10 @@ define('IMG_PATH','https://admin.tonglianjituan.com/houseImg/');
define
(
'LOCAL_IMG_HOST'
,
'/resource/lib/Attachments/'
);
define
(
'PAGESIZE'
,
15
);
//分页每页条数
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
(
'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 资源文件
return
[
// +----------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment