arthur.wu 2 anos atrás
pai
commit
39649519a0

+ 45 - 46
Tools/TestTools/client/.gitignore

@@ -1,46 +1,45 @@
-# Miscellaneous
-*.class
-*.log
-*.pyc
-*.swp
-.DS_Store
-.atom/
-.buildlog/
-.history
-.svn/
-
-# IntelliJ related
-*.iml
-*.ipr
-*.iws
-.idea/
-
-# The .vscode folder contains launch configuration and tasks you configure in
-# VS Code which you may wish to be included in version control, so this line
-# is commented out by default.
-#.vscode/
-
-# Flutter/Dart/Pub related
-**/doc/api/
-**/ios/Flutter/.last_build_id
-.dart_tool/
-.flutter-plugins
-.flutter-plugins-dependencies
-.packages
-.pub-cache/
-.pub/
-/build/
-
-# Web related
-lib/generated_plugin_registrant.dart
-
-# Symbolication related
-app.*.symbols
-
-# Obfuscation related
-app.*.map.json
-
-# Android Studio will place build artifacts here
-/android/app/debug
-/android/app/profile
-/android/app/release
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Web related
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release

+ 3 - 3
Tools/TestTools/client/lib/Services/AppSettings.dart

@@ -1,5 +1,5 @@
 class AppSettings {
-  static late String host = 'http://192.168.6.80:8303';
-  static final bool useProxy = false;
-  //static late String host = 'https://192.168.6.175:8443/api'; //proxy
+  //static late String host = 'http://192.168.6.80:8303';
+  static final bool useProxy = true;
+  static late String host = 'https://192.168.6.175:8443/api'; //proxy
 }

+ 2 - 2
Tools/TestTools/client/lib/Services/UserService.dart

@@ -17,7 +17,7 @@ class UserService {
   final String UserStroageKey = "CurrentUser";
   final LocalStorage storage = new LocalStorage('UserStroage');
   late WebSocketChannel? Channel = WebSocketChannel.connect(
-    Uri.parse('ws://192.168.6.80:9301?token=${currentUser.accessToken}'),
+    Uri.parse('wss://192.168.6.175:8443/wss/?token=${currentUser.accessToken}'),
   ); //TODO
 
   User? getCurrentUser() {
@@ -63,7 +63,7 @@ class UserService {
 
         print('jsonUser:' + jsonUser.toString());
         var url = Uri.parse(AppSettings.host);
-        var wsUrl = 'ws://${url.host}:9301?token=$token';
+        var wsUrl = 'wss://${url.host}:8443/wss/?token=$token';
         print("wsUrl---" + wsUrl);
         Channel = WebSocketChannel.connect(
           Uri.parse(wsUrl),