From 90675e7aeb34bd7511debb28b5a45095fccc14e0 Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 27 Jul 2016 18:09:45 +0800 Subject: [PATCH] fix bug of parameters --- app/Services/Http.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Services/Http.php b/app/Services/Http.php index 33bccbd0..753fbb0f 100644 --- a/app/Services/Http.php +++ b/app/Services/Http.php @@ -65,10 +65,11 @@ class Http View::json($msg, $code); } else { $config = require BASE_DIR."/config/view.php"; - if (file_exists($config['view_path']."/errors/".$code.".tpl")) + if (file_exists($config['view_path']."/errors/".$code.".tpl")) { echo View::make('errors.'.$code)->with('code', $code)->with('message', $msg); - else - echo View::make('errors.exception')->with('code', $this->code)->with('message', $this->message); + } else { + echo View::make('errors.exception')->with('code', $code)->with('message', $msg); + } exit; } }