src/DdvRestfulApi/Lib/RestfulApiEcho.php
public function onHandler($r, $e)
    {
        if (isset($r['isIgnoreError']) && $r['isIgnoreError'] === true) {
            return;
        }
        if (!empty($r['responseData'])) {
            array_merge($r, $r['responseData']);
        }
        if (isset($r['responseData'])) unset($r['responseData']);
        if (!$this->isDevelopment()) {
            if (isset($r['debug'])) unset($r['debug']);
            if (isset($r['isIgnoreError'])) unset($r['isIgnoreError']);
        }
        return $this->echoStr($r);
    }
public function onHandler($r, $e)
    {
        if (isset($r['isIgnoreError']) && $r['isIgnoreError'] === true) {
            return;
        }
        if (!empty($r['responseData'])) {
            array_merge($r, $r['responseData']);
        }
        if (isset($r['responseData'])) unset($r['responseData']);
        if (!$this->isDevelopment()) {
            if (isset($r['debug'])) unset($r['debug']);
            if (isset($r['isIgnoreError'])) unset($r['isIgnoreError']);
        }
        return $this->echoStr($r);
    }
[onHandler 监听错误]
@author: 桦 <yuchonghua@163.com>
@DateTime 2017-04-26T18:55:58+0800
@return   [type]                   [description]