fix: 自动更新请求异常

This commit is contained in:
guozhigq
2023-09-17 23:37:17 +08:00
parent 83b27e7231
commit 427bd2eb79
2 changed files with 16 additions and 13 deletions

View File

@ -184,7 +184,7 @@ class AboutController extends GetxController {
// 获取远程版本
Future getRemoteApp() async {
var result = await Request().get(Api.latestApp);
var result = await Request().get(Api.latestApp, extra: {'ua': 'pc'});
data = LatestDataModel.fromJson(result.data);
remoteAppInfo = data;
remoteVersion.value = data.tagName!;