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
cfc5c200
Commit
cfc5c200
authored
Jan 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1e72c73a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
AppChat.php
application/chat/controller/AppChat.php
+7
-7
RPush.php
application/chat/utils/RPush.php
+1
-0
curl_cookie.txt
application/chat/utils/curl_cookie.txt
+1
-1
No files found.
application/chat/controller/AppChat.php
View file @
cfc5c200
...
...
@@ -111,21 +111,21 @@ class AppChat extends Basic
public
function
pushMsg
()
{
$params
=
$this
->
params
;
/*
$params = $this->params;
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, "请求参数错误");
}
/* $params = array
(
}*/
$params
=
array
(
'msg_content'
=>
'看看'
,
'target_type'
=>
'users'
,
'source'
=>
'1'
,
'from' => 'app_63
',
'from'
=>
'app_64
'
,
'type'
=>
'1'
,
'is_user'
=>
'0'
,
'target' => 'app_64
',
);*/
'target'
=>
'app_63
'
,
);
$target_type
=
$params
[
'target_type'
];
// 消息类型 users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息
$target
=
$params
[
'target'
];
//接受人 if target_type 群 者表示群id
$source
=
$params
[
'source'
];
//消息来源 1c端app 2b端app 3其他
...
...
@@ -139,7 +139,7 @@ class AppChat extends Basic
$result
=
$this
->
_chat
->
sendMsg
(
$target_type
,
$target
,
$source
,
$is_user
,
$type
,
$msg_content
,
$from
,
$this
->
accessToken
);
if
(
count
(
$result
)
>
0
)
{
return
$this
->
response
(
"200"
,
[
"msg"
=>
"消息发送成功"
]);
return
$this
->
response
(
"200"
,
""
,
[
"msg"
=>
"消息发送成功"
]);
}
}
...
...
application/chat/utils/RPush.php
View file @
cfc5c200
...
...
@@ -66,6 +66,7 @@ class RPush
];
$url
=
$this
->
buildSendUrl
();
$response
=
$curl
->
post
(
$url
,
$data
);
dump
(
$response
);
return
$response
;
}
...
...
application/chat/utils/curl_cookie.txt
View file @
cfc5c200
...
...
@@ -2,4 +2,4 @@
# http://curl.haxx.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.
a1.easemob.com FALSE / FALSE 1516356
233
rememberMe deleteMe
a1.easemob.com FALSE / FALSE 1516356
939
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