Commit 1621a71a authored by JiangWanZhi's avatar JiangWanZhi

更改解压判断的路径

parent 2af9bae2
......@@ -523,9 +523,10 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
if (utilsTools.IsWin == true)
zpath = zpath.Replace("/", "\\");
gameScenUser.createWorkDirectory();
string outPath = Application.persistentDataPath + $"/Test_MyPic/{gameScenUser.id}";//GameScenUserInfo.getAllRoot(); //这里记得后面Test_MyPic改成MyPic
string outPath = Application.persistentDataPath + $"/MyPic";// {gameScenUser.id}";//GameScenUserInfo.getAllRoot();
string localpath = $"outPath/{gameScenUser.id}";
if (!Directory.Exists(outPath)) //没有这个路径说明是第一次下载解压的
if (!Directory.Exists(localpath)) //没有这个路径说明是第一次下载解压的
{
Directory.CreateDirectory(outPath);
if (utilsTools.IsWin == true)
......
......@@ -29,7 +29,7 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
if (utilsTools.ContainsKeyGDataByKey(EventName.DataName.Data_NativeGameData) == false)
{
string json = "{\"append\":\"\",\"classId\":\"1,8,10,14\",\"displayDate\":\"20221102\",\"enterType\":\"0\",\"extraJson\":\"{\\\"cut_height\\\": 0, \\\"refer_drawer\\\": \\\"DoMyzu\\\"}\",\"extraType\":0,\"file\":\"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/cc--EDgRpc_nHQru7H.zip\",\"highImg\":\"https://d21z6ifg4bbv2v.cloudfront.net/tspng/cc--EDgRpc_nHQru7H.png\",\"hybridType\":64,\"id\":\"cc--EDgRpc_nHQru7H\",\"originalJson\":\"https://d21z6ifg4bbv2v.cloudfront.net/tsjson/cc--EDgRpc_nHQru7H.json\",\"picAssets\":\"{\\\"pictureBin\\\": \\\"ccv1/production-pic/20221027/cc--EDgRpc_nHQru7H/zsD2ySwS4pJ25frj.p\\\", \\\"pictureThn4\\\": \\\"ccv1/production-pic/20221027/cc--EDgRpc_nHQru7H/V8ZvUuDlOEB7mifd.png\\\", \\\"pictureColorThn4\\\": \\\"ccv1/production-pic/20221027/cc--EDgRpc_nHQru7H/IDdMO8yT0fPPhUtU.jpg?x-oss-process\\u003dstyle/cc400\\\", \\\"pictureWallThn8\\\": \\\"ccv1/production-pic/20221027/cc--EDgRpc_nHQru7H/oWqHjCo5mQvXIVP_.png\\\", \\\"pictureWallColorThn8\\\": \\\"ccv1/production-pic/20221027/cc--EDgRpc_nHQru7H/IDdMO8yT0fPPhUtU.jpg?x-oss-process\\u003dstyle/cc800\\\"}\",\"pictureBin\":\"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/cc--EDgRpc_nHQru7H_pictureBin.p\",\"pictureColorThn4\":\"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/cc--EDgRpc_nHQru7H_pictureColorThn4.jpg\",\"pictureThn4\":\"https://d21z6ifg4bbv2v.cloudfront.net/tsgame/cc--EDgRpc_nHQru7H_pictureThn4.png\",\"schedule\":0,\"seriesName\":\"\",\"sid\":2967,\"sort\":80,\"type\":6}";
json = json.Replace( "cc--EDgRpc_nHQru7H", "ccgCTqoiwmXnQ1RGBb");
json = json.Replace( "cc--EDgRpc_nHQru7H", "cc0pwJCtz_oyKIWTCq");
utilsTools.setGDataByKey(EventName.DataName.Data_NativeGameData, JsonUtility.FromJson<netLableImageItem>(json));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment