更新网站汉化地址

This commit is contained in:
xkeyC 2023-10-29 18:02:56 +08:00
parent b4a39dea55
commit 7c6584fda5
2 changed files with 5 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class AppConf {
static const String gitlabApiPath = "https://jihulab.com/api/v4/"; static const String gitlabApiPath = "https://jihulab.com/api/v4/";
static const String webTranslateHomeUrl = static const String webTranslateHomeUrl =
"https://ch.citizenwiki.cn/json-files/locales"; "https://jihulab.com/StarCitizenCN_Community/scweb_chinese_translate/-/raw/main/json";
static late final String applicationSupportDir; static late final String applicationSupportDir;

View File

@ -84,9 +84,10 @@ class HomeUIModel extends BaseUIModel {
updateSCServerStatus(); updateSCServerStatus();
notifyListeners(); notifyListeners();
appWebLocalizationVersionsData = AppWebLocalizationVersionsData.fromJson( appWebLocalizationVersionsData = AppWebLocalizationVersionsData.fromJson(
(await Api.dio.get("${AppConf.webTranslateHomeUrl}/versions.json", json.decode((await Api.dio.get(
options: Options(responseType: ResponseType.json))) "${AppConf.webTranslateHomeUrl}/versions.json",
.data); options: Options(responseType: ResponseType.plain)))
.data));
} catch (e) { } catch (e) {
dPrint(e); dPrint(e);
} }