update: 新增邮件和商店链接获取接口
parent
9ae151e818
commit
90b3aa4da6
|
|
@ -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
|
||||||
|
|
@ -273,12 +291,10 @@ 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}");
|
||||||
|
|
@ -355,7 +371,6 @@ namespace Guru
|
||||||
Instance.StopCoroutine(coroutine);
|
Instance.StopCoroutine(coroutine);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 延时执行
|
/// 延时执行
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -379,7 +394,6 @@ namespace Guru
|
||||||
callback?.Invoke();
|
callback?.Invoke();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue