Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile-Cn-Ko-En
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-Cn-Ko-En
Commits
1196b080
Commit
1196b080
authored
Sep 09, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优先判断本地和在线备份的卡名进行同步
TODO:理应在下个release版本回滚这个改动
parent
92433f39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
...ymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
+2
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
View file @
1196b080
...
...
@@ -275,7 +275,7 @@ public class DeckSquareApiUtil {
deckContent
=
DeckSquareFileUtil
.
setDeckId
(
item
.
getDeckPath
(),
loginToken
.
getUserId
(),
item
.
getDeckId
());
}
data
.
setDeckYdk
(
deckContent
);
LogUtil
.
w
(
TAG
,
"syncMyDecks *要上传的* 本地卡组:
\n是否删除?: "
+
data
.
isDelete
()
+
"\n卡组分类:"
+
data
.
getDeckType
()
+
"\n卡组名称: "
+
data
.
getDeckName
()
+
"\n封面id: "
+
data
.
getDeckCoverCard1
()
+
"\n卡组id: "
+
data
.
getDeckId
());
LogUtil
.
w
(
TAG
,
"syncMyDecks *要上传的* 本地卡组:
"
+
"\n卡组分类:"
+
data
.
getDeckType
()
+
"\n卡组名称: "
+
data
.
getDeckName
()
+
"\n封面id: "
+
data
.
getDeckCoverCard1
()
+
"\n卡组id: "
+
data
.
getDeckId
());
dataList
.
add
(
data
);
}
return
pushMultiDecks
(
dataList
,
loginToken
);
...
...
@@ -455,7 +455,7 @@ public class DeckSquareApiUtil {
String
onLineDeckName
=
onlineDeck
.
getDeckName
().
replace
(
Constants
.
YDK_FILE_EX
,
""
);
LogUtil
.
e
(
TAG
,
"在线备份名称:"
+
onLineDeckName
+
"\n在线卡组分类:"
+
onlineDeck
.
getDeckType
()+
"\n在线卡组ID:"
+
onlineDeck
.
getDeckId
());
// 匹配到同名卡组:加入同步上传列表,并从原始集合中删除(避免重复处理)
if
(
localDeckName
.
equals
(
onLineDeckName
)
&&
localDeck
.
getDeckType
().
equals
(
onlineDeck
.
getDeckType
()))
{
if
(
localDeckName
.
equals
(
onLineDeckName
)
)
{
// && localDeck.getDeckType().equals(onlineDeck.getDeckType())
localDeck
.
setDeckId
(
onlineDeck
.
getDeckId
());
syncUploadDecks
.
add
(
localDeck
);
localIterator
.
remove
();
// 安全删除本地卡组(迭代器方法)
...
...
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