|
@@ -118,9 +118,24 @@ class KMProductModel: ObservableObject {
|
|
|
}
|
|
|
|
|
|
if KMMemberInfo.shared.isLogin {
|
|
|
- getDMGProductPriceInfosForMember(productId: "SP2024102100002", isEducation: 0) { [weak self] success, result in
|
|
|
-
|
|
|
- }
|
|
|
+// getDMGProductPriceInfosForMember(productId: "SP2024102100002", isEducation: 0) { [weak self] success, result in
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
+// getDMGBatchProductPriceInfosForMember(productId: "SP2024102100002", num: 10) { [weak self] success, result in
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
+// creatOrder(productId: "SP2024102300003", paymentMethod: 0, price: NSNumber(value: 119.99), discountFlag: 0, couponCode: "", num: 1) { [weak self] success, result in
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
+// createSubscriber(productId: "SP2024102300003", paymentMethod: 0, price: NSNumber(value: 119.99), discountFlag: 0, couponCode: "", num: 1) { [weak self] success, result in
|
|
|
+//
|
|
|
+// }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -222,7 +237,7 @@ class KMProductModel: ObservableObject {
|
|
|
@param num 批量购买数量
|
|
|
@param complete 回调
|
|
|
*/
|
|
|
- func creatOrder(productId: String, paymentMethod: Int, price: String, discountFlag: Int, couponCode: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
|
|
|
+ func creatOrder(productId: String, paymentMethod: Int, price: NSNumber, discountFlag: Int, couponCode: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
|
|
|
checkConnectionAvailable()
|
|
|
KMMemberCenterManager.manager.createOrder(productId: productId, paymentMethod: paymentMethod, price: price, discountFlag: discountFlag, couponCode: couponCode, num: num) { [weak self] success, result in
|
|
|
if success {
|
|
@@ -248,7 +263,7 @@ class KMProductModel: ObservableObject {
|
|
|
@param num 批量购买数量
|
|
|
@param complete 回调
|
|
|
*/
|
|
|
- func createSubscriber(productId: String, paymentMethod: Int, price: String, discountFlag: Int, couponCode: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
|
|
|
+ func createSubscriber(productId: String, paymentMethod: Int, price: NSNumber, discountFlag: Int, couponCode: String, num: Int, _ complete: @escaping KMMemberProductComplete) {
|
|
|
checkConnectionAvailable()
|
|
|
KMMemberCenterManager.manager.createSubscriber(productId: productId, paymentMethod: paymentMethod, price: price, discountFlag: discountFlag, couponCode: couponCode, num: num) { [weak self] success, result in
|
|
|
if success {
|