Browse Source

修改URL拼接错误和加载习题都从后台加载

DGJ 1 year ago
parent
commit
7c3817d9ad

+ 5 - 1
Assets/Scenes/GameStart3D_beauty.unity

@@ -3829,6 +3829,10 @@ PrefabInstance:
   m_Modification:
     m_TransformParent: {fileID: 2079611991}
     m_Modifications:
+    - target: {fileID: 1145950800, guid: 887af88f43238b74eb30b0f51360fc02, type: 3}
+      propertyPath: m_Materials.Array.size
+      value: 1
+      objectReference: {fileID: 0}
     - target: {fileID: 1976455405, guid: 887af88f43238b74eb30b0f51360fc02, type: 3}
       propertyPath: EndPoint
       value: 
@@ -13552,7 +13556,7 @@ PrefabInstance:
     - target: {fileID: 8015466720871623674, guid: 8d729329b16bad348b491ca77b4566cf,
         type: 3}
       propertyPath: OpenHead
-      value: 0
+      value: 1
       objectReference: {fileID: 0}
     - target: {fileID: 8015466720871623674, guid: 8d729329b16bad348b491ca77b4566cf,
         type: 3}

+ 12 - 8
Assets/Scripts/Core/UI/View/WebImageTool.cs

@@ -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);
+            //if (!File.Exists(LocalURL(img.identifyId)))
+            //{
+            //    yield return LoadNetWorkTexture(img);
+            //}
+            //else
+            //{
+            //    yield return LoadLocalTexture(img);
+            //}
         }
     }
 
@@ -151,6 +152,7 @@ public class WebImageTool: MonoBehaviour
     /// <returns></returns>
     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
     /// <returns></returns>
     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);

+ 0 - 8
Assets/StreamingAssets/static.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 9a558b553ebcdf84bba767b23f957065
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Assets/StreamingAssets/static/images.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 942fa4239d339dc4591e02150b1299be
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/01_001_01.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/01_001_01.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: e31f6eed59fa2bd4cb7a915264c827d9
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/01_001_02.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/01_001_02.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 88ca6a967b3639d4e9d1bcf978d0bfe5
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/01_002_11.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/01_002_11.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 7a380e308121bc34f8a02983ad4fc31a
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/03_001_09.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/03_001_09.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 7138fc8e4704626458d56e5505b83448
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/03_002_06.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/03_002_06.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: e81051b96d37be84d8c2ae2ea7e2fde9
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/03_002_09.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/03_002_09.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: a05db50e7e0bc2643bd3e0da9291db5b
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/StreamingAssets/static/images/03_017_09.jpg


+ 0 - 7
Assets/StreamingAssets/static/images/03_017_09.jpg.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 0b1866f8492303c4b9424ca6f43c52b3
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: