diff --git a/Storage/Storage/LCUser.cs b/Storage/Storage/LCUser.cs index ae24f13..7af2457 100644 --- a/Storage/Storage/LCUser.cs +++ b/Storage/Storage/LCUser.cs @@ -67,6 +67,12 @@ namespace LeanCloud.Storage { } } + /// + /// 是否是匿名登录 + /// + public bool IsAnonymous => AuthData != null && + AuthData.ContainsKey("anonymous"); + static LCUser currentUser; public static Task GetCurrent() {