|
@@ -58,8 +58,17 @@ class KMComparativeTableViewController: NSWindowController {
|
|
|
*/
|
|
|
static func show(window: NSWindow, _ type: KMComparativeInputType = .unknown) -> KMComparativeTableViewController? {
|
|
|
#if VERSION_DMG
|
|
|
- KMPurchaseManager.manager.purchaseProduct(productIdentifier: "") { isSuccess, error in
|
|
|
-
|
|
|
+ if KMLightMemberManager.manager.isLogin() {
|
|
|
+ KMPurchaseManager.manager.purchaseProduct(productIdentifier: "") { isSuccess, error in
|
|
|
+
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ var email: String = UserDefaults.standard.value(forKey: "kLoginEmail") as? String ?? ""
|
|
|
+ if email.count == 0 {
|
|
|
+ KMLoginWindowController.show(window: NSApp.mainWindow!, .Batch, .register)
|
|
|
+ } else {
|
|
|
+ KMLoginWindowController.show(window: NSApp.mainWindow!)
|
|
|
+ }
|
|
|
}
|
|
|
#endif
|
|
|
#if VERSION_FREE
|