小bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user