更新请求带版本号

This commit is contained in:
wyf
2026-01-09 09:56:58 +08:00
parent 2991deb8b3
commit 0ef8ddee8a
6 changed files with 17 additions and 4 deletions

View File

@@ -8,6 +8,9 @@ import 'package:vbvs_app/enum/APPPackageType.dart';
class AppConstants {
// App-related constants
static const String zhmht_app_version = "SWES_1.2026.1.8";//眠花糖
static const String theh_app_version = "1.2601.08";//太和
// 1. 纯字符串列表格式
static const List<String> integerTimeZones = [
'UTC-12',

View File

@@ -25,7 +25,6 @@ import 'package:vbvs_app/common/util/FitTool.dart';
import 'package:vbvs_app/common/util/JPushUtil.dart';
import 'package:vbvs_app/common/util/MyUtils.dart';
import 'package:vbvs_app/common/util/requestWithLog.dart';
import 'package:vbvs_app/config/ConfigReader.dart';
import 'package:vbvs_app/controller/date/CalendarController.dart';
import 'package:vbvs_app/controller/device/blueteeth_bind_controller.dart';
import 'package:vbvs_app/controller/device/body_device_controller.dart';
@@ -747,6 +746,17 @@ Future<void> initLogin() async {
final box = GetStorage();
UserInfoController userInfoController = Get.find();
String? token = box.read('token');
if (AppConstants().ent_type == APPPackageType.MHT.code) {
EasyDartModule.dio.queryParameters = {
"ver": AppConstants.zhmht_app_version
};
} else if (AppConstants().ent_type == APPPackageType.TH.code) {
EasyDartModule.dio.queryParameters = {"ver": AppConstants.theh_app_version};
} else {
EasyDartModule.dio.queryParameters = {"ver": AppConstants.theh_app_version};
}
if (token != null) {
// 根据token去请求
// await userInfoController.autoLogin(token);

View File

@@ -703,7 +703,7 @@ class _MinePageState extends State<MinePage> {
mainAxisSize: MainAxisSize.max,
children: [
Text(
'V1.0.2601.08',
'${AppConstants.theh_app_version}',
style: TextStyle(
fontFamily: 'Inter',
// color: Color(0xFFD9E3EB),

View File

@@ -253,7 +253,7 @@ class _SettingPageState extends State<SettingPage> {
),
].divide(SizedBox(width: 22.rpx)),
),
Text('SWES2026.1.8',
Text('${AppConstants.zhmht_app_version}',
style: TextStyle(
color: Colors.white,
fontSize: 26.rpx,

View File

@@ -93,7 +93,7 @@ class _BreatheCardState extends State<BreatheCard>
return Container(
width: double.infinity,
decoration: BoxDecoration(
color: themeController.currentColor.sc5,
// color: themeController.currentColor.sc5,
borderRadius:
BorderRadius.circular(AppConstants().normal_container_radius),
),