diff --git a/app/api/service/User.php b/app/api/service/User.php index a383e8ef..8014e3fe 100644 --- a/app/api/service/User.php +++ b/app/api/service/User.php @@ -93,7 +93,7 @@ class User extends UserService $userId = self::getCurrentLoginUserId(); //分销表里有没有 $dealerInfo = \app\api\model\dealer\User::detail($userId, []); - if (!$dealerInfo->isEmpty() && self::checkEffectiveTime()) { + if (!empty($dealerInfo) && self::checkEffectiveTime()) { return true; } }