Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fallenstardust
YGOMobile
Commits
02c5793e
Commit
02c5793e
authored
Jul 23, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
未分类卡组不上传deckType文本
parent
0d46091f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
...ymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
+3
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareFileUtil.java
...mb/ygomobile/ui/cards/deck_square/DeckSquareFileUtil.java
+6
-1
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
View file @
02c5793e
...
@@ -365,7 +365,7 @@ public class DeckSquareApiUtil {
...
@@ -365,7 +365,7 @@ public class DeckSquareApiUtil {
String
deckContent
=
DeckSquareFileUtil
.
setDeckId
(
item
.
getDeckPath
(),
loginToken
.
getUserId
(),
item
.
getDeckId
());
String
deckContent
=
DeckSquareFileUtil
.
setDeckId
(
item
.
getDeckPath
(),
loginToken
.
getUserId
(),
item
.
getDeckId
());
data
.
setDeckYdk
(
deckContent
);
data
.
setDeckYdk
(
deckContent
);
LogUtil
.
w
(
TAG
,
"syncMyDecks *要上传的* 本地卡组: "
+
data
.
getDeckType
()
+
"//"
+
data
.
getDeckName
()+
"//"
+
data
.
getDeckId
()+
"//"
+
data
.
getDeckCoverCard1
()+
"//"
+
data
.
getDeckUpdateTime
());
LogUtil
.
w
(
TAG
,
"syncMyDecks
(368)
*要上传的* 本地卡组: "
+
data
.
getDeckType
()
+
"//"
+
data
.
getDeckName
()+
"//"
+
data
.
getDeckId
()+
"//"
+
data
.
getDeckCoverCard1
()+
"//"
+
data
.
getDeckUpdateTime
());
dataList
.
add
(
data
);
dataList
.
add
(
data
);
}
}
return
pushMultiDecks
(
dataList
,
loginToken
);
return
pushMultiDecks
(
dataList
,
loginToken
);
...
@@ -733,7 +733,7 @@ public class DeckSquareApiUtil {
...
@@ -733,7 +733,7 @@ public class DeckSquareApiUtil {
MyOnlineDeckDetail
onlineDeck
=
onlineIterator
.
next
();
MyOnlineDeckDetail
onlineDeck
=
onlineIterator
.
next
();
String
onLineDeckName
=
onlineDeck
.
getDeckName
().
replace
(
Constants
.
YDK_FILE_EX
,
""
);
String
onLineDeckName
=
onlineDeck
.
getDeckName
().
replace
(
Constants
.
YDK_FILE_EX
,
""
);
if
(
localDeckName
.
equals
(
onLineDeckName
)
&&
localDeck
.
getDeckType
().
equals
(
onlineDeck
.
getDeckType
()))
{
if
(
localDeckName
.
equals
(
onLineDeckName
)
)
{
//TODO 上个版本不支持卡组分类字段,新版本安装后必然会出现在线备份没卡组分类的场合与本地有分类的进行比较 && localDeck.getDeckType().equals(onlineDeck.getDeckType())
// 匹配到同名卡组:加入同步上传列表,并从原始集合中删除(避免重复处理)
// 匹配到同名卡组:加入同步上传列表,并从原始集合中删除(避免重复处理)
localDeck
.
setDeckId
(
onlineDeck
.
getDeckId
());
localDeck
.
setDeckId
(
onlineDeck
.
getDeckId
());
syncUploadDecks
.
add
(
localDeck
);
syncUploadDecks
.
add
(
localDeck
);
...
@@ -759,7 +759,7 @@ public class DeckSquareApiUtil {
...
@@ -759,7 +759,7 @@ public class DeckSquareApiUtil {
}
}
String
fileFullPath
=
AppsSettings
.
get
().
getDeckDir
()
+
"/"
+
fileName
;
String
fileFullPath
=
AppsSettings
.
get
().
getDeckDir
()
+
"/"
+
fileName
;
if
(!
onlineDeck
.
getDeckType
().
equals
(
CORE_DECK_PATH
))
if
(!
onlineDeck
.
getDeckType
().
equals
(
""
))
fileFullPath
=
AppsSettings
.
get
().
getDeckDir
()
+
"/"
+
onlineDeck
.
getDeckType
()+
"/"
+
fileName
;
fileFullPath
=
AppsSettings
.
get
().
getDeckDir
()
+
"/"
+
onlineDeck
.
getDeckType
()+
"/"
+
fileName
;
// 保存在线卡组到本地
// 保存在线卡组到本地
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareFileUtil.java
View file @
02c5793e
...
@@ -148,7 +148,12 @@ public class DeckSquareFileUtil {
...
@@ -148,7 +148,12 @@ public class DeckSquareFileUtil {
String
deckId
=
getId
(
file
);
String
deckId
=
getId
(
file
);
MyDeckItem
item
=
new
MyDeckItem
();
MyDeckItem
item
=
new
MyDeckItem
();
item
.
setDeckName
(
file
.
getName
());
item
.
setDeckName
(
file
.
getName
());
//如果是deck并且上一个目录是ygocore的话,保证不会把名字为deck的卡包识别为未分类
if
(
file
.
getParentFile
().
getName
().
equals
(
Constants
.
CORE_DECK_PATH
)
&&
file
.
getParentFile
().
getParentFile
().
getName
().
equals
(
Constants
.
PREF_DEF_GAME_DIR
))
{
item
.
setDeckType
(
""
);
}
else
{
item
.
setDeckType
(
file
.
getParentFile
().
getName
());
item
.
setDeckType
(
file
.
getParentFile
().
getName
());
}
item
.
setUpdateTimestamp
(
file
.
lastModified
());
item
.
setUpdateTimestamp
(
file
.
lastModified
());
item
.
setDeckPath
(
file
.
getPath
());
item
.
setDeckPath
(
file
.
getPath
());
if
(
deckId
!=
null
)
{
if
(
deckId
!=
null
)
{
...
...
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