|
@@ -1,10 +1,9 @@
|
|
|
import 'dart:collection';
|
|
|
-
|
|
|
import 'package:fis_common/extensions/type.dart';
|
|
|
-import 'package:fis_common/logger/logger.dart';
|
|
|
import 'package:fis_jsonrpc/client_base.dart';
|
|
|
import 'package:fis_jsonrpc/interceptor.dart';
|
|
|
import 'package:flyinsonolite/fisLib/services/index.dart';
|
|
|
+import 'package:flyinsonolite/logger.dart';
|
|
|
|
|
|
typedef T ServiceBuilder<T extends JsonRpcClientBase>();
|
|
|
|
|
@@ -41,7 +40,8 @@ class JsonRpcProxyForFISLib {
|
|
|
|
|
|
/// 设置服务主机地址
|
|
|
void setServerHost(String address, [bool useSSL = false]) {
|
|
|
- logger.i('JsonRpcProxyForFISLib setServerHost :$address');
|
|
|
+ loggerAsyn(FISDeviceLogCategory.Error,
|
|
|
+ 'JsonRpcProxyForFISLib setServerHost :$address');
|
|
|
_currentProtocol = useSSL ? "https" : "http";
|
|
|
_currentHost = address;
|
|
|
}
|
|
@@ -61,4 +61,4 @@ class JsonRpcProxyForFISLib {
|
|
|
}
|
|
|
return _serviceCache[serviceType] as T;
|
|
|
}
|
|
|
-}
|
|
|
+}
|