Commit 8623f0ec authored by christ's avatar christ

message

parent debdb746
...@@ -303,6 +303,9 @@ $serv->on('Close', function($server, $fd) use($conf){ ...@@ -303,6 +303,9 @@ $serv->on('Close', function($server, $fd) use($conf){
}); });
function responseJson($status = 1,$method, $message = '', $data = array()) { function responseJson($status = 1,$method, $message = '', $data = array()) {
if(!$message){
$message=new \stdClass();
}
$data = [ $data = [
'status' => $status, 'status' => $status,
'method'=>$method, 'method'=>$method,
......
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