|
@@ -184,11 +184,24 @@ class KMConvertGuideView: NSView, NibLoadable {
|
|
}
|
|
}
|
|
|
|
|
|
@IBAction func convertAction(_ sender: Any) {
|
|
@IBAction func convertAction(_ sender: Any) {
|
|
- guard let callBack = self.clickHandle else {
|
|
|
|
- return
|
|
|
|
|
|
+ if KMMemberInfo.shared.isLogin {
|
|
|
|
+ guard let callBack = self.clickHandle else {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ callBack(self, .purchase)
|
|
|
|
+ FMTrackEventManager.defaultManager.trackOnceEvent(event: "PUW", withProperties: ["PUW_Btn":"Btn_PUW_StartGuideConvert_Buy"])
|
|
|
|
+ } else {
|
|
|
|
+ KMLoginWindowsController.shared.openWindow() { [weak self] success in
|
|
|
|
+ guard let self = self else { return }
|
|
|
|
+ if success {
|
|
|
|
+ guard let callBack = self.clickHandle else {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ callBack(self, .purchase)
|
|
|
|
+ FMTrackEventManager.defaultManager.trackOnceEvent(event: "PUW", withProperties: ["PUW_Btn":"Btn_PUW_StartGuideConvert_Buy"])
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- callBack(self, .purchase)
|
|
|
|
- FMTrackEventManager.defaultManager.trackOnceEvent(event: "PUW", withProperties: ["PUW_Btn":"Btn_PUW_StartGuideConvert_Buy"])
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@objc func themeChange() {
|
|
@objc func themeChange() {
|