__before($method, $action); if ($res === true || Base::isSuccess($res)) { return $this->$app(); } else { return is_array($res) ? $res : Base::ajaxError($res); } } /** * @param $method * @param $action * @return bool|array|string */ public function __before($method, $action) { return true; } }