Commit 94f98851 authored by clone's avatar clone Committed by hujun

bug

parent 265d18c4
...@@ -128,21 +128,21 @@ class AppChat extends Basic ...@@ -128,21 +128,21 @@ class AppChat extends Basic
public function pushMsg() public function pushMsg()
{ {
/* $params = $this->params; $params = $this->params;
if (!isset($params['target_type']) || !isset($params['target']) || !isset($params['type']) || !isset($params['msg_content']) if (!isset($params['target_type']) || !isset($params['target']) || !isset($params['type']) || !isset($params['msg_content'])
|| !isset($params['source']) || !isset($params['is_user']) || !isset($params['from'])) { || !isset($params['source']) || !isset($params['is_user']) || !isset($params['from'])) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误"); return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误");
}*/ }
$params = array( /* $params = array(
'msg_content' => 'ceshi666', 'msg_content' => 'ceshi666',
'target_type' => 'users', 'target_type' => 'users',
'source' => '1', 'source' => '1',
'from' => 'adminqwqw', 'from' => 'admin',
'type' => '1', 'type' => '1',
'is_user' => '0', 'is_user' => '0',
'target' => '18112347151', 'target' => '18112347151',
); );*/
$target_type = $params['target_type']; // 消息类型 users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 $target_type = $params['target_type']; // 消息类型 users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息
$target = $params['target']; //接受人 if target_type 群 者表示群id $target = $params['target']; //接受人 if target_type 群 者表示群id
$source = $params['source']; //消息来源 1c端app 2b端app 3其他 $source = $params['source']; //消息来源 1c端app 2b端app 3其他
......
...@@ -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 1516954550 rememberMe deleteMe a1.easemob.com FALSE / FALSE 1516954583 rememberMe deleteMe
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