|
|
|
@ -63,6 +63,23 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
|
super.initState();
|
|
|
|
|
// _easyRefreshController.callRefresh();
|
|
|
|
|
// UserTool.userProvider.updateUserInfo();
|
|
|
|
|
// if (UserTool.userProvider.isLogin) {
|
|
|
|
|
// // print(UserTool.userProvider.userInfo.end * 1000);
|
|
|
|
|
// // print(DateTime.now().millisecondsSinceEpoch);
|
|
|
|
|
// if (UserTool.userProvider.userInfo.isVip != 1) {
|
|
|
|
|
// isVip = false;
|
|
|
|
|
// vle = false;
|
|
|
|
|
// } else {
|
|
|
|
|
// isVip = true;
|
|
|
|
|
// vle = await service.isRunning();
|
|
|
|
|
// }
|
|
|
|
|
// //service.isRunning() as bool;
|
|
|
|
|
// // endDate = DateUtil.formatDateMs(
|
|
|
|
|
// // UserTool.userProvider.userInfo.end * 1000,
|
|
|
|
|
// // format: DateFormats.y_mo_d);
|
|
|
|
|
// } else {
|
|
|
|
|
// vle = false;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -84,6 +101,7 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
|
header: MaterialHeader(),
|
|
|
|
|
onRefresh: () async {
|
|
|
|
|
// _load();
|
|
|
|
|
_getRequests();
|
|
|
|
|
// await UserTool.userProvider.updateUserInfo();
|
|
|
|
|
if (UserTool.userProvider.isLogin) {
|
|
|
|
|
// print(UserTool.userProvider.userInfo.end * 1000);
|
|
|
|
@ -237,6 +255,23 @@ class _UserPageState extends State<UserPage> {
|
|
|
|
|
UserTool.userProvider.userInfo.end * 1000,
|
|
|
|
|
format: DateFormats.y_mo_d);
|
|
|
|
|
UserTool.userProvider.updateUserInfo();
|
|
|
|
|
if (UserTool.userProvider.isLogin) {
|
|
|
|
|
// print(UserTool.userProvider.userInfo.end * 1000);
|
|
|
|
|
// print(DateTime.now().millisecondsSinceEpoch);
|
|
|
|
|
if (UserTool.userProvider.userInfo.isVip != 1) {
|
|
|
|
|
isVip = false;
|
|
|
|
|
vle = false;
|
|
|
|
|
} else {
|
|
|
|
|
isVip = true;
|
|
|
|
|
vle = await service.isRunning();
|
|
|
|
|
}
|
|
|
|
|
//service.isRunning() as bool;
|
|
|
|
|
// endDate = DateUtil.formatDateMs(
|
|
|
|
|
// UserTool.userProvider.userInfo.end * 1000,
|
|
|
|
|
// format: DateFormats.y_mo_d);
|
|
|
|
|
} else {
|
|
|
|
|
vle = false;
|
|
|
|
|
}
|
|
|
|
|
setState(() {});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|