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
0d8c0f07
Commit
0d8c0f07
authored
Nov 24, 2025
by
fallenstardust
Committed by
GitHub
Nov 24, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #206 from jwyxym/online-deck-id
增加在线卡组id检测
parents
d47d4d5e
dc24cce4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
...ymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
+1
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/api_response/MyDeckResponse.java
...ile/ui/cards/deck_square/api_response/MyDeckResponse.java
+14
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/DeckSquareApiUtil.java
View file @
0d8c0f07
...
@@ -135,6 +135,7 @@ public class DeckSquareApiUtil {
...
@@ -135,6 +135,7 @@ public class DeckSquareApiUtil {
String
responseBodyString
=
response
.
body
().
string
();
String
responseBodyString
=
response
.
body
().
string
();
Gson
gson
=
new
Gson
();
Gson
gson
=
new
Gson
();
result
=
gson
.
fromJson
(
responseBodyString
,
MyDeckResponse
.
class
);
result
=
gson
.
fromJson
(
responseBodyString
,
MyDeckResponse
.
class
);
result
.
chkId
();
if
(
result
.
code
==
20
)
{
//用户身份验证失败
if
(
result
.
code
==
20
)
{
//用户身份验证失败
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/deck_square/api_response/MyDeckResponse.java
View file @
0d8c0f07
...
@@ -45,5 +45,19 @@ public class MyDeckResponse {
...
@@ -45,5 +45,19 @@ public class MyDeckResponse {
this
.
data
=
data
;
this
.
data
=
data
;
}
}
public
void
chkId
()
{
for
(
MyOnlineDeckDetail
item
:
this
.
data
)
{
String
ydk
=
item
.
getDeckYdk
();
String
contains
;
contains
=
"##"
+
item
.
getDeckId
();
if
(!
ydk
.
contains
(
contains
))
ydk
+=
"\n"
+
contains
;
contains
=
"###"
+
item
.
getUserId
();
if
(!
ydk
.
contains
(
contains
))
ydk
+=
"\n"
+
contains
;
item
.
setDeckYdk
(
ydk
);
}
}
}
}
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