mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 21:41:36 +08:00
类不存在的异常不再手动捕获 系统自动捕获
This commit is contained in:
@@ -34,12 +34,8 @@ class Oauth {
|
||||
*/
|
||||
static public function connect($type,$options=[]) {
|
||||
$class = 'Think\\Oauth\\Driver\\'.ucwords($type);
|
||||
if(class_exists($class)) {
|
||||
self::$handler = new $class($options);
|
||||
return self::$handler;
|
||||
}else{
|
||||
E('_OAUTH_TYPE_INVALID_:'.$type);
|
||||
}
|
||||
self::$handler = new $class($options);
|
||||
return self::$handler;
|
||||
}
|
||||
|
||||
// 跳转到授权登录页面
|
||||
|
||||
Reference in New Issue
Block a user