|
|
@ -83,8 +83,6 @@ class HomeViewController: UIViewController, UICollectionViewDelegateFlowLayout { |
|
|
|
|
|
|
|
var userHotLine: HotLine? |
|
|
|
|
|
|
|
var isShowTokenRenewAlert = false |
|
|
|
|
|
|
|
override func viewDidLoad() { |
|
|
|
super.viewDidLoad() |
|
|
|
// test() |
|
|
@ -772,7 +770,7 @@ extension HomeViewController { |
|
|
|
} |
|
|
|
|
|
|
|
private func checkKFTCToken() { |
|
|
|
if !isShowTokenRenewAlert { |
|
|
|
if !UserDefaults.standard.bool(forKey: AppConstants.isOpenedTokenRenwalAlert) { |
|
|
|
// TODO: Show Alert for token refresh (navigation push) |
|
|
|
guard |
|
|
|
let remind = UserDefaults.standard.string(forKey: UserKeys.remindKFTCTokenDay), |
|
|
@ -793,11 +791,11 @@ extension HomeViewController { |
|
|
|
cancelTitle: "later_text".localized(), |
|
|
|
okAction: { |
|
|
|
AutoDebitWireframe().pushMainView(on: self) |
|
|
|
self.isShowTokenRenewAlert = true |
|
|
|
UserDefaults.standard.set(true, forKey: AppConstants.isOpenedTokenRenwalAlert) |
|
|
|
}, |
|
|
|
cancelAction : { |
|
|
|
self.isShowTokenRenewAlert = true |
|
|
|
self.popUpNotification() |
|
|
|
UserDefaults.standard.set(true, forKey: AppConstants.isOpenedTokenRenwalAlert) |
|
|
|
} |
|
|
|
) |
|
|
|
} else { |
|
|
@ -807,8 +805,6 @@ extension HomeViewController { |
|
|
|
} |
|
|
|
|
|
|
|
private func popUpNotification() { |
|
|
|
self.isShowTokenRenewAlert = true |
|
|
|
|
|
|
|
// FIXME: Temporary expire date |
|
|
|
let dateformat = DateFormatter() |
|
|
|
dateformat.dateFormat = "yyyy-MM-dd" |
|
|
|