Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
T
tuseGameColor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shujianhe
tuseGameColor
Commits
1621a71a
Commit
1621a71a
authored
Aug 23, 2023
by
JiangWanZhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改解压判断的路径
parent
2af9bae2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
gameSceneLogic.cs
Assets/scripts/Views/gameScene/gameSceneLogic.cs
+3
-2
gameUserInfos.cs
Assets/scripts/Views/gameScene/gameUserInfos.cs
+2
-2
No files found.
Assets/scripts/Views/gameScene/gameSceneLogic.cs
View file @
1621a71a
...
@@ -523,9 +523,10 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
...
@@ -523,9 +523,10 @@ public class gameSceneLogic : MonoBehaviour, IEventHandler
if
(
utilsTools
.
IsWin
==
true
)
if
(
utilsTools
.
IsWin
==
true
)
zpath
=
zpath
.
Replace
(
"/"
,
"\\"
);
zpath
=
zpath
.
Replace
(
"/"
,
"\\"
);
gameScenUser
.
createWorkDirectory
();
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
(
outP
ath
))
//没有这个路径说明是第一次下载解压的
if
(!
Directory
.
Exists
(
localp
ath
))
//没有这个路径说明是第一次下载解压的
{
{
Directory
.
CreateDirectory
(
outPath
);
Directory
.
CreateDirectory
(
outPath
);
if
(
utilsTools
.
IsWin
==
true
)
if
(
utilsTools
.
IsWin
==
true
)
...
...
Assets/scripts/Views/gameScene/gameUserInfos.cs
View file @
1621a71a
...
@@ -29,8 +29,8 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
...
@@ -29,8 +29,8 @@ public class gameUserInfos : MonoBehaviour, IEventHandler
if
(
utilsTools
.
ContainsKeyGDataByKey
(
EventName
.
DataName
.
Data_NativeGameData
)
==
false
)
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}"
;
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"
,
"cc
gCTqoiwmXnQ1RGBb
"
);
json
=
json
.
Replace
(
"cc--EDgRpc_nHQru7H"
,
"cc
0pwJCtz_oyKIWTCq
"
);
utilsTools
.
setGDataByKey
(
EventName
.
DataName
.
Data_NativeGameData
,
JsonUtility
.
FromJson
<
netLableImageItem
>(
json
));
utilsTools
.
setGDataByKey
(
EventName
.
DataName
.
Data_NativeGameData
,
JsonUtility
.
FromJson
<
netLableImageItem
>(
json
));
}
}
if
(
utilsTools
.
ContainsKeyGDataByKey
(
EventName
.
DataName
.
Data_NativeGameData
)
==
false
)
if
(
utilsTools
.
ContainsKeyGDataByKey
(
EventName
.
DataName
.
Data_NativeGameData
)
==
false
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment