添加api接口的支持

This commit is contained in:
thinkphp
2015-05-12 15:34:04 +08:00
parent d886644b58
commit 36a84e75de
20 changed files with 247 additions and 196 deletions

View File

@@ -68,7 +68,7 @@ abstract class rest {
$this->$fun();
}else{
// 抛出异常
E(L('_ERROR_ACTION_:').ACTION_NAME);
throw new \think\Exception(L('_ERROR_ACTION_:').ACTION_NAME);
}
}