From 2266887b9a413780a77b0cfa3a7a224d76bef489 Mon Sep 17 00:00:00 2001 From: oneRain Date: Wed, 6 May 2020 12:48:58 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=8C=BF=E5=90=8D=E7=94=A8=E6=88=B7=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Storage/Storage/LCUser.cs | 6 ++++++ 1 file changed, 6 insertions(+) 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() {