Commit c8941c59 authored by clone's avatar clone

bug

parent 3140e35e
......@@ -80,14 +80,14 @@ class AppChat extends Basic
public function userChat()
{
$params = $this->params;
/* $params = array(
$params = array(
"user_id" => 80,
"mobile" => "15821506182",
"is_self" => 0是 1
"is_self" => 1,//1是 2
"source" => 1, //1经纪人 2用户
"device_id" => "ssss1231231123123",
"push_id" => "ssss1231231123123"
);*/
);
$user_id = $params['user_id'];
$mobile = $params['mobile'];
$is_self = $params['is_self'];
......@@ -98,8 +98,8 @@ class AppChat extends Basic
if (!$is_self || !$source || !$user_id || !$mobile) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误");
}
if ($is_self == 0 && (!$device_id || !$push_id)) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误");
if ($is_self == 1 && (!$device_id || !$push_id)) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误1");
}
......
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