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
a29123fe
Commit
a29123fe
authored
Jan 25, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
0e0b0b6f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
AppChat.php
application/chat/controller/AppChat.php
+10
-10
ChatService.php
application/chat/service/ChatService.php
+2
-1
curl_cookie.txt
application/chat/utils/curl_cookie.txt
+1
-1
No files found.
application/chat/controller/AppChat.php
View file @
a29123fe
...
@@ -69,11 +69,11 @@ class AppChat extends Basic
...
@@ -69,11 +69,11 @@ class AppChat extends Basic
*/
*/
public
function
userChat
()
public
function
userChat
()
{
{
/* $params = array(
/*
$params = array(
"user_id" => 1
,
"user_id" => 10
,
"mobile" => "15720682761
",
"mobile" => "15821506182
",
"source" => 2
//1经纪人 2用户
"source" => 1
//1经纪人 2用户
);*/
);*/
$params
=
$this
->
params
;
$params
=
$this
->
params
;
...
@@ -115,11 +115,11 @@ class AppChat extends Basic
...
@@ -115,11 +115,11 @@ class AppChat extends Basic
if
(
!
isset
(
$params
[
'only_id'
])
&&
!
isset
(
$params
[
'phone'
])
||
!
isset
(
$params
[
'type'
]))
{
if
(
!
isset
(
$params
[
'only_id'
])
&&
!
isset
(
$params
[
'phone'
])
||
!
isset
(
$params
[
'type'
]))
{
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
}
}
/* $params = array(
/* $params = array(
"only_id" => "user_66",
"only_id" => "user_66",
"phone" => "13817616471",
"phone" => "13817616471",
"source" => 2,// 1经纪人 or 2用户
"source" => 2,// 1经纪人 or 2用户
);*/
);*/
$only_id
=
isset
(
$params
[
'only_id'
])
?
$params
[
'only_id'
]
:
0
;
$only_id
=
isset
(
$params
[
'only_id'
])
?
$params
[
'only_id'
]
:
0
;
$phone
=
isset
(
$params
[
'phone'
])
?
$params
[
'phone'
]
:
0
;
$phone
=
isset
(
$params
[
'phone'
])
?
$params
[
'phone'
]
:
0
;
...
...
application/chat/service/ChatService.php
View file @
a29123fe
...
@@ -94,7 +94,8 @@ class ChatService
...
@@ -94,7 +94,8 @@ class ChatService
$where_
[
"inuse"
]
=
1
;
$where_
[
"inuse"
]
=
1
;
$where_
[
"id"
]
=
$userId
;
$where_
[
"id"
]
=
$userId
;
$agentsResult
=
$this
->
agentsModel
->
getAgentsById
(
"id"
,
$where_
);
$agentsResult
=
$this
->
agentsModel
->
getAgentsById
(
"id"
,
$where_
);
if
(
count
(
$agentsResult
)
>
1
)
if
(
$agentsResult
->
id
>
0
)
$onlyId
=
self
::
SOURCE_TYPE_AGENT
.
$userId
;
$onlyId
=
self
::
SOURCE_TYPE_AGENT
.
$userId
;
break
;
break
;
case
2
:
case
2
:
...
...
application/chat/utils/curl_cookie.txt
View file @
a29123fe
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
# http://curl.haxx.se/docs/http-cookies.html
# http://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
# This file was generated by libcurl! Edit at your own risk.
a1.easemob.com FALSE / FALSE 15168
52769
rememberMe deleteMe
a1.easemob.com FALSE / FALSE 15168
60430
rememberMe deleteMe
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