TANG JIANG 1 anno fa
parent
commit
88c2ba7120
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4 3
      src/Hotline/Push/MessageCodeDomainService.cs

+ 4 - 3
src/Hotline/Push/MessageCodeDomainService.cs

@@ -59,10 +59,11 @@ namespace Hotline.Push
                 return false;
 
             var settingWhite = _systemSettingCacheManager.GetSetting(SettingConstants.LoginCodeWhiteList);
-            if (settingWhite != null && settingWhite.SettingValue.Exists(p => p == UserName))
-                return false;
+       
+            if (settingWhite == null || !settingWhite.SettingValue.Exists(p => p == UserName))
+                return true;
 
-            return true;
+            return false;
         }
 
         /// <summary>