Explorar o código

公用机提交

beiguoxia %!s(int64=3) %!d(string=hai) anos
pai
achega
bfbf682955

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

@@ -43,7 +43,7 @@ namespace GFGGame
             int index = Application.persistentDataPath.IndexOf("Android");
             path = index < 0 ? path : Application.persistentDataPath.Substring(0, index);
 
-            // path = "file://sdcard/DCIM/";
+             path = "/sdcard/DCIM/";
 
 #endif
             //判断目录是否存在,不存在则会创建目录
@@ -65,7 +65,7 @@ namespace GFGGame
             Debug.Log("文件路径:" + path);
             Texture2D tex = this.viewData as Texture2D;
             byte[] bytes = tex.EncodeToPNG();//将纹理数据,转化成一个png图片
-            var filePath = path + "/Pictures/wanshijing/" + fileName;
+            var filePath = path + fileName;
             File.WriteAllBytes(filePath, bytes);
             //GetSaveState(path);
             savePngAndUpdate(filePath);