pull/1/head
wanghousheng 10 months ago
parent cbef4d6dba
commit 4f763ffac7
  1. 2
      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;
}
}

Loading…
Cancel
Save