update: 新增邮件和商店链接获取接口

feature/item_system
胡宇飞 2024-01-10 18:22:02 +08:00
parent 9ae151e818
commit 90b3aa4da6
1 changed files with 21 additions and 7 deletions

View File

@ -260,6 +260,24 @@ namespace Guru
public static string UID => _model?.UserId ?? ""; public static string UID => _model?.UserId ?? "";
public static string SupportEmail => guruSettings?.SupportEmail ?? "";
public static string StoreUrl
{
get
{
string url = "";
#if UNITY_EDITOR
url = "test@com.guru.ai";
#elif UNITY_ANDROID
url = guruSettings?.AndroidStoreUrl ?? "";
#elif UNITY_IOS
url = guruSettings?.IOSStoreUrl ?? "";
#endif
return url;
}
}
#endregion #endregion
#region Misc #region Misc
@ -272,13 +290,11 @@ namespace Guru
{ {
GuruWebview.OpenPage(url); GuruWebview.OpenPage(url);
} }
#endregion #endregion
#region Logging #region Logging
internal static void LogI(object message) internal static void LogI(object message)
{ {
Debug.Log($"{Tag} {message}"); Debug.Log($"{Tag} {message}");
@ -354,8 +370,7 @@ namespace Guru
if(coroutine != null) if(coroutine != null)
Instance.StopCoroutine(coroutine); Instance.StopCoroutine(coroutine);
} }
/// <summary> /// <summary>
/// 延时执行 /// 延时执行
/// </summary> /// </summary>
@ -378,8 +393,7 @@ namespace Guru
} }
callback?.Invoke(); callback?.Invoke();
} }
#endregion #endregion
} }