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
c8941c59
Commit
c8941c59
authored
Jul 18, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3140e35e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AppChat.php
application/chat/controller/AppChat.php
+5
-5
No files found.
application/chat/controller/AppChat.php
View file @
c8941c59
...
@@ -80,14 +80,14 @@ class AppChat extends Basic
...
@@ -80,14 +80,14 @@ class AppChat extends Basic
public
function
userChat
()
public
function
userChat
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"user_id"
=>
80
,
"user_id"
=>
80
,
"mobile"
=>
"15821506182"
,
"mobile"
=>
"15821506182"
,
"is_self" =>
0是 1
否
"is_self"
=>
1
,
//1是 2
否
"source"
=>
1
,
//1经纪人 2用户
"source"
=>
1
,
//1经纪人 2用户
"device_id"
=>
"ssss1231231123123"
,
"device_id"
=>
"ssss1231231123123"
,
"push_id"
=>
"ssss1231231123123"
"push_id"
=>
"ssss1231231123123"
);
*/
);
$user_id
=
$params
[
'user_id'
];
$user_id
=
$params
[
'user_id'
];
$mobile
=
$params
[
'mobile'
];
$mobile
=
$params
[
'mobile'
];
$is_self
=
$params
[
'is_self'
];
$is_self
=
$params
[
'is_self'
];
...
@@ -98,8 +98,8 @@ class AppChat extends Basic
...
@@ -98,8 +98,8 @@ class AppChat extends Basic
if
(
!
$is_self
||
!
$source
||
!
$user_id
||
!
$mobile
)
{
if
(
!
$is_self
||
!
$source
||
!
$user_id
||
!
$mobile
)
{
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
}
}
if
(
$is_self
==
0
&&
(
!
$device_id
||
!
$push_id
))
{
if
(
$is_self
==
1
&&
(
!
$device_id
||
!
$push_id
))
{
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误"
);
return
$this
->
response
(
ErrorCodeConst
::
ERROR_CODE_PARAM_NOT_EXIST
,
"请求参数错误
1
"
);
}
}
...
...
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