Commit 0f6b1d9c7f51a664bcc87330297ef7a40e1c552f

Authored by wdn127929
1 parent 1b0f2d0b

网络超时提醒toast测试

... ... @@ -11,14 +11,14 @@ if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = "254"
def flutterVersionCode = "255"
if (flutterVersionCode == null) {
flutterVersionCode = '254'
flutterVersionCode = '255'
}
def flutterVersionName = "2.5.4"
def flutterVersionName = "2.5.5"
if (flutterVersionName == null) {
flutterVersionName = '2.5.4'
flutterVersionName = '2.5.5'
}
apply plugin: 'com.android.application'
... ...
... ... @@ -245,7 +245,7 @@ class DioUtil {
Loading.hideLoading(context);
}
if (error is DioError && error.type == DioErrorType.CONNECT_TIMEOUT) {
// Utils.showToast("网络链接超时,请稍后重试");
// Utils.showToast("网络链接超时,请稍后重试");
}
if (error.type != DioErrorType.CANCEL) {
throw MyError(type: 2);
... ...
... ... @@ -173,7 +173,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
LogUtil.v("access_token:${response.toString()}");
Map<String, dynamic> responseData = json.decode(response.data.toString());
if (responseData["errcode"] != null) {
Utils.showToast(responseData["errmsg"] ?? "登录,请稍后重试");
Utils.showToast(responseData["errmsg"] ?? "登录失败,请稍后重试");
// Loading.hideLoading(context);
} else {
App.sp.setString("openid", responseData["openid"]);
... ...
... ... @@ -94,7 +94,6 @@ class OtherLoginProvider extends ChangeNotifier {
Utils.showToast(baseResp.msg ?? "");
}
return checkbindPhoneSunModel;
;
}
}
}
... ...