Commit 8c84ad38 authored by clone's avatar clone

bug

parent 68a5a037
......@@ -149,7 +149,7 @@ class AppChat extends Basic
{
$params = $this->params;
$params = array(
/*$params = array(
'user_name' => 'cesh',
'msg_content' => 'ceshi666',
'target_type' => 'users',
......@@ -158,7 +158,7 @@ class AppChat extends Basic
'type' => '1',
'is_user' => '0',
'target' => 'agent_5740',
);
);*/
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'])) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误");
......
......@@ -394,7 +394,7 @@ class ChatService
c.name as agent_name,c.img,d.user_name,d.user_phone,d.user_nick,d.user_pic,d.other_pic";
$relationList = $chatRelationModel->getChatRelationInfo($params, $field);
dump($relationList);
//dump($relationList);
$fields = "a.id,a.from_id,a.to_id,b.body,a.created_at";
$msgModel = new ChatMsg();
foreach ($relationList as $key=> $item) {
......
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