|
@@ -86,6 +86,10 @@ class AccountCenterWindowController: NSWindowController {
|
|
|
NotificationCenter.default.post(name: .loginStatusChanged, object: nil)
|
|
|
|
|
|
self.gotoCenter(model: model, infoModel: nil)
|
|
|
+
|
|
|
+ if let data = model.memberInfo?.email, data.isEmpty == false {
|
|
|
+ self.activateDevice(email: data)
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
// if let token = KMDataManager.ud_string(forKey: kAccountEmailKey), token.isEmpty == false {
|
|
@@ -213,6 +217,18 @@ class AccountCenterWindowController: NSWindowController {
|
|
|
self.contentBox.contentView = self.centerC?.view
|
|
|
}
|
|
|
|
|
|
+ func activateDevice(email: String) {
|
|
|
+// if IAPProductsManager.default().isAvailableAllFunction() {
|
|
|
+// return
|
|
|
+// }
|
|
|
+
|
|
|
+ VerificationManager.default().activateDevice(withInfo: ["email" : email]) { status, info, err in
|
|
|
+ VerificationManager.default().verification { status, info, err in
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// func rightDatas() {
|
|
|
// let header = ["Token" : "7130d162c7533b5a51daefdd4faf17ea1729747785"]
|
|
|
// KMHTTP.OEM_POST(urlString: kURLAPI_oemGetPermissions, parameter: nil, headers: header) { success, dataDict, err in
|