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
d06f7832
Commit
d06f7832
authored
Jul 02, 2025
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正deckfile 传参位置
修改下载按钮说明为预览
parent
979f258d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
10 additions
and
6 deletions
+10
-6
mobile/src/main/java/cn/garymb/ygomobile/bean/events/DeckFile.java
...c/main/java/cn/garymb/ygomobile/bean/events/DeckFile.java
+2
-3
mobile/src/main/java/cn/garymb/ygomobile/deck_square/DeckSquareApiUtil.java
...va/cn/garymb/ygomobile/deck_square/DeckSquareApiUtil.java
+1
-2
mobile/src/main/res/layout/item_my_deck.xml
mobile/src/main/res/layout/item_my_deck.xml
+1
-1
mobile/src/main/res/values-es/strings.xml
mobile/src/main/res/values-es/strings.xml
+1
-0
mobile/src/main/res/values-jp/strings.xml
mobile/src/main/res/values-jp/strings.xml
+1
-0
mobile/src/main/res/values-ko/strings.xml
mobile/src/main/res/values-ko/strings.xml
+1
-0
mobile/src/main/res/values-pt/strings.xml
mobile/src/main/res/values-pt/strings.xml
+1
-0
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+1
-0
mobile/src/main/res/values/strings.xml
mobile/src/main/res/values/strings.xml
+1
-0
No files found.
mobile/src/main/java/cn/garymb/ygomobile/bean/events/DeckFile.java
View file @
d06f7832
...
@@ -26,13 +26,12 @@ public class DeckFile extends TextSelect {
...
@@ -26,13 +26,12 @@ public class DeckFile extends TextSelect {
this
.
onServer
=
onServer
;
this
.
onServer
=
onServer
;
}
}
public
DeckFile
(
String
name
,
String
typeName
,
DeckType
.
ServerType
onServer
,
String
deckId
)
{
public
DeckFile
(
String
name
,
File
path
,
DeckType
.
ServerType
onServer
,
String
deckId
)
{
this
.
typeName
=
typeName
;
this
.
onServer
=
onServer
;
this
.
onServer
=
onServer
;
this
.
deckId
=
deckId
;
this
.
deckId
=
deckId
;
this
.
setName
(
name
);
this
.
setName
(
name
);
this
.
fileFullName
=
null
;
this
.
fileFullName
=
null
;
this
.
path
=
null
;
this
.
path
=
path
;
this
.
firstCode
=
-
1
;
this
.
firstCode
=
-
1
;
setObject
(
this
);
setObject
(
this
);
}
}
...
...
mobile/src/main/java/cn/garymb/ygomobile/deck_square/DeckSquareApiUtil.java
View file @
d06f7832
...
@@ -577,10 +577,9 @@ public class DeckSquareApiUtil {
...
@@ -577,10 +577,9 @@ public class DeckSquareApiUtil {
private
static
boolean
uploadLocalDeck
(
MyDeckItem
localDeck
,
String
onlineDeckId
,
LoginToken
loginToken
)
{
private
static
boolean
uploadLocalDeck
(
MyDeckItem
localDeck
,
String
onlineDeckId
,
LoginToken
loginToken
)
{
try
{
try
{
DeckFile
deckFile
=
new
DeckFile
(
localDeck
.
getDeck
Path
(),
DeckType
.
ServerType
.
MY_SQUARE
);
DeckFile
deckFile
=
new
DeckFile
(
localDeck
.
getDeck
Name
(),
new
File
(
localDeck
.
getDeckPath
()),
DeckType
.
ServerType
.
MY_SQUARE
,
localDeck
.
getDeckId
()
);
deckFile
.
setName
(
localDeck
.
getDeckName
());
deckFile
.
setName
(
localDeck
.
getDeckName
());
deckFile
.
setFirstCode
(
localDeck
.
getDeckCoverCard1
());
deckFile
.
setFirstCode
(
localDeck
.
getDeckCoverCard1
());
// 上传本地卡组,使用在线卡组的deckId
// 上传本地卡组,使用在线卡组的deckId
PushDeckResponse
response
=
DeckSquareApiUtil
.
pushDeck
(
deckFile
,
loginToken
,
onlineDeckId
);
PushDeckResponse
response
=
DeckSquareApiUtil
.
pushDeck
(
deckFile
,
loginToken
,
onlineDeckId
);
if
(
response
==
null
||
!
response
.
isData
())
{
if
(
response
==
null
||
!
response
.
isData
())
{
...
...
mobile/src/main/res/layout/item_my_deck.xml
View file @
d06f7832
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
android:layout_marginLeft=
"1dp"
android:layout_marginLeft=
"1dp"
android:layout_marginRight=
"5dp"
android:layout_marginRight=
"5dp"
android:lines=
"1"
android:lines=
"1"
android:text=
"@string/
Download
"
android:text=
"@string/
pre_view
"
android:textSize=
"5sp"
/>
android:textSize=
"5sp"
/>
</LinearLayout>
</LinearLayout>
...
...
mobile/src/main/res/values-es/strings.xml
View file @
d06f7832
...
@@ -387,5 +387,6 @@
...
@@ -387,5 +387,6 @@
<string
name=
"account_warning"
>
Por favor, complete su correo electrónico o nombre de usuario!
</string>
<string
name=
"account_warning"
>
Por favor, complete su correo electrónico o nombre de usuario!
</string>
<string
name=
"pwd_warning"
>
Por favor, introduzca su contraseña!
</string>
<string
name=
"pwd_warning"
>
Por favor, introduzca su contraseña!
</string>
<string
name=
"like_deck_thumb"
>
Dar un me gusta al deck
</string>
<string
name=
"like_deck_thumb"
>
Dar un me gusta al deck
</string>
<string
name=
"pre_view"
>
Vista Previa
</string>
</resources>
</resources>
mobile/src/main/res/values-jp/strings.xml
View file @
d06f7832
...
@@ -381,4 +381,5 @@
...
@@ -381,4 +381,5 @@
<string
name=
"account_warning"
>
メールアドレスまたはユーザー名を入力してください!
</string>
<string
name=
"account_warning"
>
メールアドレスまたはユーザー名を入力してください!
</string>
<string
name=
"pwd_warning"
>
パスワードを入力してください!
</string>
<string
name=
"pwd_warning"
>
パスワードを入力してください!
</string>
<string
name=
"like_deck_thumb"
>
デッキに「いいね」をつける
</string>
<string
name=
"like_deck_thumb"
>
デッキに「いいね」をつける
</string>
<string
name=
"pre_view"
>
プレビュー
</string>
</resources>
</resources>
mobile/src/main/res/values-ko/strings.xml
View file @
d06f7832
...
@@ -382,4 +382,5 @@
...
@@ -382,4 +382,5 @@
<string
name=
"account_warning"
>
이메일이나 사용자 이름을 입력해 주세요!
</string>
<string
name=
"account_warning"
>
이메일이나 사용자 이름을 입력해 주세요!
</string>
<string
name=
"pwd_warning"
>
비밀번호를 입력해 주세요!
</string>
<string
name=
"pwd_warning"
>
비밀번호를 입력해 주세요!
</string>
<string
name=
"like_deck_thumb"
>
데ッ크에 좋아요를 누르다
</string>
<string
name=
"like_deck_thumb"
>
데ッ크에 좋아요를 누르다
</string>
<string
name=
"pre_view"
>
미리 보기
</string>
</resources>
</resources>
mobile/src/main/res/values-pt/strings.xml
View file @
d06f7832
...
@@ -371,5 +371,6 @@
...
@@ -371,5 +371,6 @@
<string
name=
"account_warning"
>
Por favor, preencha seu e - mail ou nome de usuário!
</string>
<string
name=
"account_warning"
>
Por favor, preencha seu e - mail ou nome de usuário!
</string>
<string
name=
"pwd_warning"
>
Por favor, insira sua senha!
</string>
<string
name=
"pwd_warning"
>
Por favor, insira sua senha!
</string>
<string
name=
"like_deck_thumb"
>
Curtir o deck
</string>
<string
name=
"like_deck_thumb"
>
Curtir o deck
</string>
<string
name=
"pre_view"
>
Prévia
</string>
</resources>
</resources>
mobile/src/main/res/values-zh/strings.xml
View file @
d06f7832
...
@@ -386,4 +386,5 @@
...
@@ -386,4 +386,5 @@
<string
name=
"account_warning"
>
请填写你的邮箱或用户名!
</string>
<string
name=
"account_warning"
>
请填写你的邮箱或用户名!
</string>
<string
name=
"pwd_warning"
>
请填写你的密码!
</string>
<string
name=
"pwd_warning"
>
请填写你的密码!
</string>
<string
name=
"like_deck_thumb"
>
为卡组点赞
</string>
<string
name=
"like_deck_thumb"
>
为卡组点赞
</string>
<string
name=
"pre_view"
>
预览
</string>
</resources>
</resources>
mobile/src/main/res/values/strings.xml
View file @
d06f7832
...
@@ -413,4 +413,5 @@
...
@@ -413,4 +413,5 @@
<string
name=
"account_warning"
>
Please fill in your email or username!
</string>
<string
name=
"account_warning"
>
Please fill in your email or username!
</string>
<string
name=
"pwd_warning"
>
Please enter your password!
</string>
<string
name=
"pwd_warning"
>
Please enter your password!
</string>
<string
name=
"like_deck_thumb"
>
Like the deck
</string>
<string
name=
"like_deck_thumb"
>
Like the deck
</string>
<string
name=
"pre_view"
>
pre view
</string>
</resources>
</resources>
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