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
786fa9fb
Commit
786fa9fb
authored
Feb 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
8d2af252
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ChatService.php
application/chat/service/ChatService.php
+3
-2
Agents.php
application/model/Agents.php
+0
-1
No files found.
application/chat/service/ChatService.php
View file @
786fa9fb
...
@@ -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"
];
}
}
...
...
application/model/Agents.php
View file @
786fa9fb
...
@@ -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
;
}
}
...
...
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