删除dns,弹窗广告广告位调整
This commit is contained in:
@@ -28,7 +28,6 @@ import 'package:hgdj/tools_base/net/net_manager.dart';
|
||||
import 'package:hgdj/tools_base/widget/common_alert.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
|
||||
import '../../alert/splash/line_error_dialog.dart';
|
||||
import '../../alert/splash/update_dialog.dart';
|
||||
import '../../hj_utils/free_play_manager.dart';
|
||||
import '../../tools_base/loading/loading_alert_widget.dart';
|
||||
@@ -58,8 +57,7 @@ class SplashLogic extends GetxController {
|
||||
await AdManager().preload(); //预热广告内存缓存,后续统一用 AdManager().adsByType
|
||||
_loadAds(isLast: true); //获取上次启动的广告
|
||||
final line = await _detectLine(); //选线
|
||||
//拿不到线路就到此为止:要么用户放弃了重试,要么弹框回调里重试成功、
|
||||
//已经自己走了一遍 _initByLine。这里再调一次会重复初始化
|
||||
//拿不到线路就到此为止(线路异常弹窗已去掉,失败暂不提示),启动流程停在启动页
|
||||
if (TextUtil.isEmpty(line)) return;
|
||||
_initByLine(line!); //初始化流程
|
||||
}
|
||||
@@ -95,7 +93,8 @@ class SplashLogic extends GetxController {
|
||||
update();
|
||||
}
|
||||
|
||||
///一直检查网络直到成功
|
||||
///选线:拿到线路才继续启动流程
|
||||
//选线失败暂时不做处理(线路异常弹窗已去掉),启动流程停在启动页
|
||||
Future<String?> _detectLine() async {
|
||||
LoadingAlertWidget.show(title: "选线中...");
|
||||
|
||||
@@ -106,11 +105,6 @@ class SplashLogic extends GetxController {
|
||||
LoadingAlertWidget.cancel();
|
||||
if (TextUtil.isNotEmpty(line)) return line;
|
||||
}
|
||||
await LineErrorDialog.show(callback: () async {
|
||||
final line = await DetectLineManager().detectLineOnce();
|
||||
LoadingAlertWidget.cancel();
|
||||
if (TextUtil.isNotEmpty(line)) _initByLine(line); //初始化流程
|
||||
});
|
||||
LoadingAlertWidget.cancel();
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user