Commit 9aa4700b3042440cabb2cfb2d59c31a4617dd31f

Authored by wdn127929
1 parent 848aaebd

退出登录时,清空模块弹框天数缓存

... ... @@ -55,7 +55,7 @@ class SellerVersionSunModel {
vname = json['vname'];
rdate = json['rdate'];
// edate = '1695437146';
// edate = json['vid'] == '4' ? '1695005146' : '1695437146';
// edate = json['vid'] == '4' ? '1695005146' : '1694832346';
edate = json['edate'];
cdate = json['cdate'];
}
... ...
... ... @@ -87,6 +87,14 @@ class _CompleteCreateStorePageState extends State<CompleteCreateStorePage> {
//退出清空店铺过期数据缓存
App.sp.remove('sellerEdate');
}
if (App.sp.containsKey('sellerEdateModule')) {
//退出清空模块过期数据缓存
App.sp.remove('sellerEdateModule');
}
bus.emit('refresh_token');
Map<String, dynamic> userMap = {
"sellerimage": seller['seller_image'],
... ...
... ... @@ -156,6 +156,10 @@ class _IfNeedCreateStoreState extends State<IfNeedCreateStore>
//退出清空店铺过期数据缓存
App.sp.remove('sellerEdate');
}
if (App.sp.containsKey('sellerEdateModule')) {
//退出清空模块过期数据缓存
App.sp.remove('sellerEdateModule');
}
bus.emit('refresh_token');
Map<String, dynamic> seller = sunModel.toJson();
Map<String, dynamic> userMap = {
... ...
... ... @@ -376,6 +376,10 @@ class UserModel with ChangeNotifier {
//退出清空店铺过期数据缓存
App.sp.remove('sellerEdate');
}
if (App.sp.containsKey('sellerEdateModule')) {
//退出清空模块过期数据缓存
App.sp.remove('sellerEdateModule');
}
App.sp.setBool("isLogin", false);
// XgFlutterPlugin().stopXg();
... ...