|
@@ -4,6 +4,7 @@ import 'package:get/get.dart';
|
|
|
import 'package:vitalapp/architecture/app_parameters.dart';
|
|
|
import 'package:vitalapp/architecture/utils/prompt_box.dart';
|
|
|
import 'package:vitalapp/components/dialog_confirm.dart';
|
|
|
+import 'package:vitalapp/global.dart';
|
|
|
import 'package:vitalapp/managers/interfaces/account.dart';
|
|
|
import 'package:vitalapp/store/store.dart';
|
|
|
import 'package:fis_common/logger/logger.dart';
|
|
@@ -21,7 +22,7 @@ class JsonRpcExInterceptor extends JsonRpcInterceptor {
|
|
|
JsonRpcNetworkException error) async {
|
|
|
logger.e("JsonRpcExInterceptor-HttpRequestError", error);
|
|
|
|
|
|
- if (!isLocalStation && error.data != "EchoAsync") {
|
|
|
+ if (kIsOnline && !isLocalStation && error.data != "EchoAsync") {
|
|
|
PromptBox.toast("网络请求错误");
|
|
|
}
|
|
|
return super.onHttpRequestError(error);
|