mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 06:33:43 +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 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;
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user