This commit is contained in:
FloatGaming
2026-06-30 21:32:17 +08:00
parent f62f643cfc
commit 917b2d2604
-15
View File
@@ -100,21 +100,6 @@ public class mailSlotPrefab : MonoBehaviour
return;
}
if (!url.StartsWith("http://", System.StringComparison.OrdinalIgnoreCase)
&& !url.StartsWith("https://", System.StringComparison.OrdinalIgnoreCase))
{
NetworkManager network = NetworkManager.Instance;
if (network != null && !string.IsNullOrWhiteSpace(network.ServerUrl))
{
string baseUrl = network.ServerUrl.TrimEnd('/');
if (!url.StartsWith("/"))
{
url = "/" + url;
}
url = baseUrl + url;
}
}
if (RewardPreviewCache.TryGetValue(url, out Sprite cachedSprite) && cachedSprite != null)
{
icon.sprite = cachedSprite;