Browse Source

【会员系统】购买成功后未及时刷新会员权益

wangshuai 1 day ago
parent
commit
8ca0b8a98f

+ 1 - 1
PDF Office/PDF Master/MemberCenter/WindowsController/KMProductCompareWC.swift

@@ -1209,7 +1209,7 @@ class KMProductCompareWC: NSWindowController {
             guard let self = self else { return }
             guard let self = self else { return }
             if KMMemberInfo.shared.isLogin {
             if KMMemberInfo.shared.isLogin {
                 self.model.appStoreEquityVerification(notification) { success, msg in
                 self.model.appStoreEquityVerification(notification) { success, msg in
-                    DispatchQueue.main.async {
+                    DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 1.5) {//购买成功后,会员信息没有及时刷新
                         if success {
                         if success {
 //                            self.showAlert(message: NSLocalizedString("Binding Interest Success!", comment: ""))
 //                            self.showAlert(message: NSLocalizedString("Binding Interest Success!", comment: ""))
                             KMUserInfoVCModel().refreshUserInfo { success, msg,dic  in
                             KMUserInfoVCModel().refreshUserInfo { success, msg,dic  in