|
@@ -10,6 +10,7 @@ import 'package:naiyouwl/app/controller/controllers.dart';
|
|
|
import 'package:naiyouwl/app/utils/shell.dart';
|
|
|
import 'package:naiyouwl/app/utils/utils.dart';
|
|
|
import 'package:url_launcher/url_launcher.dart';
|
|
|
+import 'package:wl_base_help/wl_base_help.dart';
|
|
|
import '../../../clash/service/clash_service.dart';
|
|
|
import '../../../common/LogHelper.dart';
|
|
|
import '../../../common/SharedPreferencesUtil.dart';
|
|
@@ -112,6 +113,15 @@ class HomeController extends GetxController {
|
|
|
// return;
|
|
|
// }
|
|
|
|
|
|
+ if(Platform.isWindows){
|
|
|
+ final proxyManager = WlBaseHelp();
|
|
|
+ final bok = await proxyManager.isDialUpEnabled();
|
|
|
+ if(bok){
|
|
|
+ controllers.global.handleApiError("当前为拨号上网,到用户中心查看教程");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if(controllers.cc_service.serviceStatus == RunningState.starting){
|
|
|
controllers.global.handleApiError("服务安装中,请等待");
|
|
|
return;
|