From cbef4d6dba3e9adc9e38905f22a17742d1242119 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sun, 4 Feb 2024 13:48:32 +0800 Subject: [PATCH] 1 --- app/api/service/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/service/User.php b/app/api/service/User.php index b89d0548..a383e8ef 100644 --- a/app/api/service/User.php +++ b/app/api/service/User.php @@ -113,7 +113,7 @@ class User extends UserService $userId = self::getCurrentLoginUserId(); //分销表里有没有 $dealerInfo = \app\api\model\dealer\User::detail($userId, []); - if (!$dealerInfo->isEmpty() && self::checkEffectiveTime() && $dealerInfo['type'] == DealerUserEnum::ENGINEER) { + if (!empty($dealerInfo) && self::checkEffectiveTime() && $dealerInfo['type'] == DealerUserEnum::ENGINEER) { return true; } }