|
...
|
...
|
@@ -25,7 +25,7 @@ class UserModel with ChangeNotifier { |
|
|
|
String _registrationId; //极光推送registrationId
|
|
|
|
String _token; //信鸽推送token
|
|
|
|
List<PullMarketingByUidSunModel> pullMarketingByUidSunModel;
|
|
|
|
bool accountLogin = false;
|
|
|
|
// bool accountLogin = false;
|
|
|
|
|
|
|
|
User get user => _user;
|
|
|
|
|
|
...
|
...
|
@@ -63,9 +63,9 @@ class UserModel with ChangeNotifier { |
|
|
|
// return baseResp.msg ?? '用户名密码错误,请重新输入';
|
|
|
|
} else {
|
|
|
|
if (acclogin) {
|
|
|
|
accountLogin = true;
|
|
|
|
App.sp.setBool("accountLogin", true);
|
|
|
|
} else {
|
|
|
|
accountLogin = false;
|
|
|
|
App.sp.setBool("accountLogin", false);
|
|
|
|
}
|
|
|
|
Map<String, dynamic> seller = baseResp.data[0]["seller"];
|
|
|
|
Map<String, dynamic> user = baseResp.data[0]["user"];
|
|
...
|
...
|
@@ -332,7 +332,7 @@ class UserModel with ChangeNotifier { |
|
|
|
App.sp.remove("unionid");
|
|
|
|
}
|
|
|
|
App.sp.setBool("isLogin", false);
|
|
|
|
XgFlutterPlugin().stopXg();
|
|
|
|
// XgFlutterPlugin().stopXg();
|
|
|
|
NavigatorUtil.goLoginPage(context);
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -349,7 +349,7 @@ class UserModel with ChangeNotifier { |
|
|
|
Utils.showToast(baseResp.msg ?? "切换店铺失败,请稍后重试");
|
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
XgFlutterPlugin().stopXg();
|
|
|
|
// XgFlutterPlugin().stopXg();
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|