Update Auth.php

This commit is contained in:
邹景立 2021-04-08 14:45:01 +08:00
parent 0831b38958
commit e45d5843c6

View File

@ -51,7 +51,7 @@ abstract class Auth extends Controller
if (empty($this->type)) {
$this->error("未获取到接口类型字段!");
}
if (isset(UserAdminService::TYPES[$this->type])) {
if (!isset(UserAdminService::TYPES[$this->type])) {
$this->error("接口类型[{$this->type}]未定义!");
}
// 获取用户数据