pull/1/head
wanghousheng 12 months ago
parent 21c2a3ee3d
commit cbef4d6dba
  1. 2
      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;
}
}

Loading…
Cancel
Save