1.3.3 VIP修正

This commit is contained in:
Mr.zhou 2024-12-20 13:00:26 +08:00
parent 4c632a0f61
commit 16343bff6f
4 changed files with 8 additions and 22 deletions

View File

@ -56,9 +56,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
MP_NetWorkManager.shared.requestStatusToYouTube()
IQKeyboardManager.shared.enable = true
IQKeyboardManager.shared.shouldResignOnTouchOutside = true
//
MP_IAPManager.shared.observeVIPStoreKit()
MP_IAPManager.shared.getVIPAllProducts()
window = UIWindow(frame: UIScreen.main.bounds)
window?.backgroundColor = .init(hex: "#161616")
//faceBook

View File

@ -116,6 +116,9 @@ class MP_LunchViewController: UIViewController {
private func switchAOrBAction() {
//B
guard UserDefaults.standard.bool(forKey: "MP_Into_B") != true else {
//
MP_IAPManager.shared.observeVIPStoreKit()
MP_IAPManager.shared.getVIPAllProducts()
loadAds()
//
MP_AnalyticsManager.shared.getOpenStatus(0) { open in
@ -153,6 +156,9 @@ class MP_LunchViewController: UIViewController {
MP_NetWorkManager.shared.performTaskNetWrokAvailable {
[weak self] in
guard let self = self else {return}
//
MP_IAPManager.shared.observeVIPStoreKit()
MP_IAPManager.shared.getVIPAllProducts()
//广
loadAds()
//

View File

@ -38,6 +38,8 @@ class MP_IAPManager: NSObject {
}
///
func observeVIPStoreKit() {
//
// guard
//
transactions.removeAll()
//
@ -89,24 +91,6 @@ class MP_IAPManager: NSObject {
}
}
// ///
// func requestProducts() {
// guard MP_NetWorkManager.shared.netWorkStatu == .reachable else {
// //
// print("")
// return
// }
// //
// availableProducts = []
// //IDSet
// let setStrings:Set<String> = Set(productIdentifiers)
// //
// productsRequest = SKProductsRequest(productIdentifiers: setStrings)
// //
// productsRequest?.delegate = self
// //
// productsRequest?.start()
// }
///
func purchaseProduct(with productId:String) {
showHUD = true
@ -123,7 +107,6 @@ class MP_IAPManager: NSObject {
}
}
///
func restorePurchases() {
MP_HUD.loading()