规范调整

This commit is contained in:
thinkphp
2015-10-03 21:43:48 +08:00
parent 7c2bcbcff2
commit 1cfb3704c6
31 changed files with 393 additions and 285 deletions

View File

@@ -10,6 +10,7 @@
// +----------------------------------------------------------------------
namespace think\controller;
use think\Response;
abstract class rest {
@@ -68,7 +69,7 @@ abstract class rest {
$this->$fun();
}else{
// 抛出异常
throw new \think\Exception(L('_ERROR_ACTION_:').ACTION_NAME);
throw new \think\Exception(\think\Lang::get('_ERROR_ACTION_:').ACTION_NAME);
}
}