|
@@ -133,14 +133,15 @@ public class WebImageTool: MonoBehaviour
|
|
|
{
|
|
|
if (!string.IsNullOrEmpty(GamePlayerData.Instance.url_image_str))
|
|
|
{
|
|
|
- if (!File.Exists(LocalURL(img.identifyId)))
|
|
|
- {
|
|
|
- yield return LoadNetWorkTexture(img);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- yield return LoadLocalTexture(img);
|
|
|
- }
|
|
|
+ yield return LoadNetWorkTexture(img);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -151,6 +152,7 @@ public class WebImageTool: MonoBehaviour
|
|
|
|
|
|
private IEnumerator LoadLocalTexture(WebImage img)
|
|
|
{
|
|
|
+ Debug.Log("IMGURL "+img.identifyId);
|
|
|
|
|
|
string filePath = "file:///" + LocalURL(img.identifyId);
|
|
|
CDebug.Log("本地文件路径 " + filePath);
|
|
@@ -166,7 +168,9 @@ public class WebImageTool: MonoBehaviour
|
|
|
|
|
|
private IEnumerator LoadNetWorkTexture(WebImage img)
|
|
|
{
|
|
|
+ Debug.Log(format_name + " " + GamePlayerData.Instance.url_image_str + " " + img.identifyId);
|
|
|
string full_url = string.Format(format_name, GamePlayerData.Instance.url_image_str, img.identifyId);
|
|
|
+ full_url = GamePlayerData.Instance.url_image_str + img.identifyId;
|
|
|
CDebug.Log("full_url : " + full_url);
|
|
|
string img_url = (new Uri(full_url)).AbsoluteUri;
|
|
|
CDebug.Log(img_url);
|