Browse Source

地图选择位置null解决;

remove_uniapp
w-R 3 years ago
parent
commit
cdf598af65
  1. 3
      lib/login/login_page.dart
  2. 2
      lib/retrofit/min_api.dart
  3. 2
      lib/retrofit/retrofit_api.dart
  4. 2
      lib/retrofit/retrofit_api.g.dart

3
lib/login/login_page.dart

@ -343,7 +343,8 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
EasyLoading.dismiss();
} else {
// SmartDialog.showToast("${value?.msg ??""}", alignment: Alignment.center);
if(value?.msg !=null)
SmartDialog.showToast("${value?.msg ??""}", alignment: Alignment.center);
}
});
}

2
lib/retrofit/min_api.dart

@ -102,7 +102,7 @@ abstract class MinApiService {
}
} else if (map["code"] != 0 && response.request.baseUrl == baseUrl) {
///poi服务请求不需要toast
SmartDialog.showToast(map["msg"], alignment: Alignment.center);
// SmartDialog.showToast(map["msg"], alignment: Alignment.center);
}
debugPrint(
"======================= Min_响应数据结束 =======================\n");

2
lib/retrofit/retrofit_api.dart

@ -130,7 +130,7 @@ abstract class ApiService {
}
} else if (map["code"] != 0 && response.request.baseUrl == baseUrl) {
///poi服务请求不需要toast
SmartDialog.showToast(map["msg"], alignment: Alignment.center);
// SmartDialog.showToast(map["msg"], alignment: Alignment.center);
}
debugPrint("======================= 响应数据结束 =======================\n");
}, onError: (DioError e) {

2
lib/retrofit/retrofit_api.g.dart

@ -92,7 +92,7 @@ class _ApiService implements ApiService {
data: _data);
final value = BaseData<LoginInfo>.fromJson(
_result.data,
(json) => LoginInfo.fromJson(json),
(json) => json==""?null :LoginInfo.fromJson(json),
);
return value;
}

Loading…
Cancel
Save