mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 01:53:41 +08:00
更新网站汉化地址
This commit is contained in:
parent
b4a39dea55
commit
7c6584fda5
@ -24,7 +24,7 @@ class AppConf {
|
||||
static const String gitlabApiPath = "https://jihulab.com/api/v4/";
|
||||
|
||||
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;
|
||||
|
||||
|
@ -84,9 +84,10 @@ class HomeUIModel extends BaseUIModel {
|
||||
updateSCServerStatus();
|
||||
notifyListeners();
|
||||
appWebLocalizationVersionsData = AppWebLocalizationVersionsData.fromJson(
|
||||
(await Api.dio.get("${AppConf.webTranslateHomeUrl}/versions.json",
|
||||
options: Options(responseType: ResponseType.json)))
|
||||
.data);
|
||||
json.decode((await Api.dio.get(
|
||||
"${AppConf.webTranslateHomeUrl}/versions.json",
|
||||
options: Options(responseType: ResponseType.plain)))
|
||||
.data));
|
||||
} catch (e) {
|
||||
dPrint(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user