Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
vbot
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f92223ed
authored
Dec 28, 2016
by
hanccc
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复无消息时报错
1 parent
b3e33366
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/Core/MessageHandler.php
src/Core/MessageHandler.php
View file @
f92223e
...
...
@@ -92,12 +92,13 @@ class MessageHandler
$message
=
$this
->
sync
();
if
(
$message
[
'AddMsgList'
]){
foreach
(
$message
[
'AddMsgList'
]
as
$msg
)
{
$content
=
(
new
Message
)
->
make
(
$selector
,
$msg
);
$response
=
call_user_func_array
(
$this
->
handler
,
[
$content
]);
$this
->
send
(
$response
,
$content
);
}
// Log::echo(json_encode($message));
}
}
private
function
send
(
$word
,
$content
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment