Commit d58c5c8d authored by 林生雨's avatar 林生雨

commit

parent 00f70d15
...@@ -150,6 +150,17 @@ class LevelOneListState extends State<LevelOneList> ...@@ -150,6 +150,17 @@ class LevelOneListState extends State<LevelOneList>
NativeToast.showNativeToast("该机构未开通私信功能"); NativeToast.showNativeToast("该机构未开通私信功能");
return; return;
} }
if (CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(USER_ID) ==
null &&
RouterCenterImpl()
.findMainRouter()
.isWithNative()) {
RouterCenterImpl().findMainRouter().jumpPage(
context, "show_login", null, true);
return;
}
buried_on_click_button(index, "consult", buried_on_click_button(index, "consult",
"doctor", data2.doctor.doctor_id); "doctor", data2.doctor.doctor_id);
RouterCenterImpl().findMainRouter().jumpPage( RouterCenterImpl().findMainRouter().jumpPage(
...@@ -170,17 +181,6 @@ class LevelOneListState extends State<LevelOneList> ...@@ -170,17 +181,6 @@ class LevelOneListState extends State<LevelOneList>
null, null,
true); true);
} else if (data2.cardType == "plan") { } else if (data2.cardType == "plan") {
if (CacheManager.getInstance()
.get(MEMORY_CACHE)
.get(USER_ID) ==
null &&
RouterCenterImpl()
.findMainRouter()
.isWithNative()) {
RouterCenterImpl().findMainRouter().jumpPage(
context, "show_login", null, true);
return;
}
buried_on_click_button(index, "consult", buried_on_click_button(index, "consult",
"level_two_plan", "${data2.plan.plan_id}"); "level_two_plan", "${data2.plan.plan_id}");
BaseBottomPicker() BaseBottomPicker()
......
...@@ -7,6 +7,7 @@ import 'dart:io'; ...@@ -7,6 +7,7 @@ import 'dart:io';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:gm_flutter/commonModel/cache/CacheManager.dart'; import 'package:gm_flutter/commonModel/cache/CacheManager.dart';
import '../../main.dart';
import '../App.dart'; import '../App.dart';
import 'DioUtil.dart'; import 'DioUtil.dart';
...@@ -120,12 +121,17 @@ class DioInterceptorManager { ...@@ -120,12 +121,17 @@ class DioInterceptorManager {
"${CacheManager.getInstance().get(MEMORY_CACHE).get(CURRENT_CITY_ID)}"; "${CacheManager.getInstance().get(MEMORY_CACHE).get(CURRENT_CITY_ID)}";
} }
} }
if (!inProduction) {
print("请求之前 onRequest${opt.uri}${opt.queryParameters}${opt.headers}"); print("请求之前 onRequest${opt.uri}${opt.queryParameters}${opt.headers}");
}
}, onResponse: (response) { }, onResponse: (response) {
print("响应之前 "); if (!inProduction) {
print("响应之前 ");
}
}, onError: (e) { }, onError: (e) {
print("网络错误 $e message ${e.message}"); if (!inProduction) {
print("网络错误 $e message ${e.message}");
}
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment