chore: 增加判断匿名用户接口

oneRain 2020-05-06 12:48:58 +08:00
parent 9d3d6092f0
commit 2266887b9a
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,12 @@ namespace LeanCloud.Storage {
}
}
/// <summary>
/// 是否是匿名登录
/// </summary>
public bool IsAnonymous => AuthData != null &&
AuthData.ContainsKey("anonymous");
static LCUser currentUser;
public static Task<LCUser> GetCurrent() {