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
9ce1584d
Commit
9ce1584d
authored
Aug 07, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
比对本地和在线卡组的条件为卡组名和卡组分类需要都一致
parent
40660724
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
...ymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
+2
-6
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
View file @
9ce1584d
...
...
@@ -64,7 +64,6 @@ public class DeckSquareApiUtil {
/**
* 如果未登录(不存在token),显示toast提示用户。如果已登录,返回token
*
* @return
*/
public
static
LoginToken
getLoginData
()
{
String
serverToken
=
SharedPreferenceUtil
.
getServerToken
();
...
...
@@ -372,8 +371,6 @@ public class DeckSquareApiUtil {
String
url
=
"https://sapi.moecube.com:444/accounts/signin"
;
// Create request body using Gson
Gson
gson
=
new
Gson
();
// userId = 107630627;
// password = "Qbz95qbz96";
LoginRequest
loginRequest
=
new
LoginRequest
(
username
,
password
);
String
json
=
gson
.
toJson
(
loginRequest
);
//"{\"id\":1,\"name\":\"John\"}";
...
...
@@ -456,9 +453,8 @@ public class DeckSquareApiUtil {
while
(
onlineIterator
.
hasNext
())
{
MyOnlineDeckDetail
onlineDeck
=
onlineIterator
.
next
();
String
onLineDeckName
=
onlineDeck
.
getDeckName
().
replace
(
Constants
.
YDK_FILE_EX
,
""
);
if
(
localDeckName
.
equals
(
onLineDeckName
))
{
//TODO 上个版本不支持卡组分类字段,新版本安装后必然会出现在线备份没卡组分类的场合与本地有分类的进行比较 && 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