zhaoyang 3 years ago
parent
commit
7ffdcd4746

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/DressUp/PhotographSaveView.cs

@@ -40,7 +40,7 @@ namespace GFGGame
 
 #if UNITY_ANDROID
 
-            path = Application.persistentDataPath.IndexOf("Android") > 0 ? path.Substring(0, Application.persistentDataPath.IndexOf("Android")) + "Pictures/万世镜/" : path + "/Pictures/万世镜/";
+            path = Application.persistentDataPath.IndexOf("Android") > 0 ? path.Substring(0, Application.persistentDataPath.IndexOf("Android")) + "DCIM/Camera/万世镜" : path + "/Pictures/万世镜";
 #endif
             //判断目录是否存在,不存在则会创建目录
             if (!Directory.Exists(path))
@@ -48,7 +48,7 @@ namespace GFGGame
                 Directory.CreateDirectory(path);
             }
             string fileName = DateUtils.Instance.GetCurTime() + ".png";
-            path = path + fileName;
+            path = path + "/" + fileName;
 
             Debug.Log("文件路径:" + path);
             Texture2D tex = this.viewData as Texture2D;