Browse Source

【会员系统】恢复购买需先登录

dinglingui 1 week ago
parent
commit
b7e5d7eac9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      PDF Office/PDF Master/AppDelegate.swift

+ 4 - 0
PDF Office/PDF Master/AppDelegate.swift

@@ -761,6 +761,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
     }
     
     @objc func restoreSubscriptions(_ sender: NSMenuItem) {
+        if(KMMemberInfo.shared.isLogin == false) {
+            KMLoginWindowsController.shared.showWindow(nil)
+            return
+        }
 #if VERSION_FREE
         KMPrint("restoreSubscriptions ...")
         KMProductCompareWC.shared.orientation = false