线上域名修改

This commit is contained in:
2026-01-16 17:25:52 +08:00
parent 5722e3ace0
commit edbacc502b
3 changed files with 22 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ void main() async {
WidgetsFlutterBinding.ensureInitialized();
WidgetsBinding widgetsBinding = await init(
isDebug: true,
isDebug: false,
logTag: '小羚羚',
supportedLocales: [Locale('zh', 'CN')],
);
@@ -31,7 +31,7 @@ void main() async {
// 设计稿尺寸 单位dp
designSize: const Size(390, 844),
// Getx Log
enableLog: true,
enableLog: false,
// 默认的跳转动画
defaultTransition: Transition.rightToLeft,
// 主题模式
@@ -74,6 +74,9 @@ void initHttpSet() {
// 设置全局响应处理器
HttpService.to.setOnResponseHandler((response) async {
try {
if (response.data == null) {
return '服务繁忙,稍后重试';
}
final baseModel = BaseModel.fromJson(response.data);
if (baseModel.code == 0 || baseModel.code == 200) {