|
@@ -962,7 +962,7 @@ class KMMemberCenterManager: NSObject {
|
|
|
var upgradePriceString:String?
|
|
|
var cnyPriceString:String?
|
|
|
var displayCnyPriceString:String?
|
|
|
-
|
|
|
+ var upgradecnyPriceString:String?
|
|
|
|
|
|
if let token = dict1["id"] { id = token as? String ?? id }
|
|
|
if let token = dict1["productName"] { productName = token as? String ?? productName }
|
|
@@ -987,6 +987,11 @@ class KMMemberCenterManager: NSObject {
|
|
|
displayPrice = token
|
|
|
}
|
|
|
|
|
|
+ if let token = dict1["cnyUpgradePrice"] as? NSNumber {
|
|
|
+ let string = KMFormatNSNumber(token, to: 2)
|
|
|
+ upgradecnyPriceString = string
|
|
|
+ }
|
|
|
+
|
|
|
if let token = dict1["upgradePrice"] as? NSNumber {
|
|
|
let string = KMFormatNSNumber(token, to: 2)
|
|
|
upgradePriceString = string
|
|
@@ -1008,6 +1013,7 @@ class KMMemberCenterManager: NSObject {
|
|
|
let products = KMListingProductsModel(id: id, productName: productName, price: priceString, maxDeviceNum: maxDeviceNum, displayPrice: displayPriceString, levels: levels, platforms: platforms, productLineId: productLineId, paymentModel: paymentModel, cycle: cycle, cnyPrice: cnyPriceString, displayCnyPrice: displayCnyPriceString, upgradePrice: upgradePriceString, code: code)
|
|
|
products.individualPriceString = priceString
|
|
|
products.individualCnyPriceString = cnyPriceString
|
|
|
+ products.cnyUpgradePriceString = upgradecnyPriceString
|
|
|
results.append(products)
|
|
|
}
|
|
|
|
|
@@ -1079,6 +1085,7 @@ class KMMemberCenterManager: NSObject {
|
|
|
var upgradePriceString:String?
|
|
|
var cnyPriceString:String?
|
|
|
var displayCnyPriceString:String?
|
|
|
+ var upgradecnyPriceString:String?
|
|
|
|
|
|
if let token = dict1["id"] { id = token as? String ?? id }
|
|
|
if let token = dict1["productName"] { productName = token as? String ?? productName }
|
|
@@ -1116,8 +1123,14 @@ class KMMemberCenterManager: NSObject {
|
|
|
displayCnyPriceString = string
|
|
|
displayCnyPrice = token
|
|
|
}
|
|
|
+
|
|
|
+ if let token = dict1["cnyUpgradePrice"] as? NSNumber {
|
|
|
+ let string = KMFormatNSNumber(token, to: 2)
|
|
|
+ upgradecnyPriceString = string
|
|
|
+ }
|
|
|
|
|
|
let products = KMListingProductsModel(id: id, productName: productName, price: priceString, maxDeviceNum: maxDeviceNum, displayPrice: displayPriceString, levels: levels, platforms: platforms, productLineId: productLineId, paymentModel: paymentModel, cycle: cycle, cnyPrice: cnyPriceString, displayCnyPrice: displayCnyPriceString, upgradePrice: upgradePriceString, code: code)
|
|
|
+ products.cnyUpgradePriceString = upgradecnyPriceString
|
|
|
products.individualPriceString = priceString
|
|
|
products.individualCnyPriceString = cnyPriceString
|
|
|
results.append(products)
|
|
@@ -1256,7 +1269,7 @@ class KMMemberCenterManager: NSObject {
|
|
|
var upgradePriceString:String?
|
|
|
var cnyPriceString:String?
|
|
|
var displayCnyPriceString:String?
|
|
|
-
|
|
|
+ var upgradecnyPriceString:String?
|
|
|
|
|
|
if let token = result["id"] { id = token as? String ?? id }
|
|
|
if let token = result["productName"] { productName = token as? String ?? productName }
|
|
@@ -1294,8 +1307,15 @@ class KMMemberCenterManager: NSObject {
|
|
|
displayCnyPriceString = string
|
|
|
displayCnyPrice = token
|
|
|
}
|
|
|
+
|
|
|
+ if let token = result["cnyUpgradePrice"] as? NSNumber {
|
|
|
+ let string = KMFormatNSNumber(token, to: 2)
|
|
|
+ upgradecnyPriceString = string
|
|
|
+ }
|
|
|
|
|
|
let products = KMCheckCouponModel(id: id, productName: productName, price: priceString, maxDeviceNum: maxDeviceNum, displayPrice: displayPriceString, levels: levels, platforms: platforms, productLineId: productLineId, paymentModel: paymentModel, cycle: cycle, cnyPrice: cnyPriceString, displayCnyPrice: displayCnyPriceString, upgradePrice: upgradePriceString, code: code)
|
|
|
+ products.upgradecnyPriceString = upgradecnyPriceString
|
|
|
+
|
|
|
let result1 = KMMemberProductResult(code: requestCode, msg: message, checkCoupon: products)
|
|
|
if requestCode == 200 {
|
|
|
complete(true, result1)
|