更新汉化Api

This commit is contained in:
2023-12-06 20:59:49 +08:00
parent 3d7454613f
commit 39b357d223
3 changed files with 24 additions and 19 deletions

View File

@ -81,8 +81,8 @@ class LocalizationUI extends BaseUI<LocalizationUIModel> {
AnimatedSize(
duration: const Duration(milliseconds: 130),
child: (curInstallInfo != null &&
curInstallInfo.node != null &&
curInstallInfo.node!.isNotEmpty)
curInstallInfo.note != null &&
curInstallInfo.note!.isNotEmpty)
? Padding(
padding: const EdgeInsets.only(top: 12),
child: Container(
@ -101,7 +101,7 @@ class LocalizationUI extends BaseUI<LocalizationUIModel> {
),
const SizedBox(height: 6),
Text(
"${curInstallInfo.node}",
"${curInstallInfo.note}",
style: TextStyle(
color: Colors.white.withOpacity(.8)),
)
@ -244,7 +244,7 @@ class LocalizationUI extends BaseUI<LocalizationUIModel> {
),
const SizedBox(height: 4),
Text(
"通道:${item.value.channel}",
"通道:${item.value.gameChannel}",
style: TextStyle(color: Colors.white.withOpacity(.6)),
),
const SizedBox(height: 4),

View File

@ -68,9 +68,9 @@ class LocalizationUIModel extends BaseUIModel {
apiLocalizationData = {};
for (var element in l) {
final isPTU = !scInstallPath.contains("LIVE");
if (isPTU && element.channel == "PTU") {
if (isPTU && element.gameChannel == "PTU") {
apiLocalizationData![element.versionName ?? ""] = element;
} else if (!isPTU && element.channel == "PU") {
} else if (!isPTU && element.gameChannel == "PU") {
apiLocalizationData![element.versionName ?? ""] = element;
}
}