Ver código fonte

feat:测试代码

kailen 1 semana atrás
pai
commit
35b0d857ec
2 arquivos alterados com 5 adições e 4 exclusões
  1. BIN
      .DS_Store
  2. 5 4
      AIEmoji/Common/Purchase/TSPurchaseManager.swift

BIN
.DS_Store


+ 5 - 4
AIEmoji/Common/Purchase/TSPurchaseManager.swift

@@ -23,7 +23,7 @@ public enum PremiumPeriod: String, CaseIterable {
         case .year:
             return 50
         default:
-            return 10
+            return 3
         }
     }
 }
@@ -118,7 +118,7 @@ public class PurchaseManager: NSObject {
         if isVip {
             return totalUsedTimes >= vipType.freeNumber
         }
-        return true
+        return false
     }
 
     override init() {
@@ -612,8 +612,9 @@ extension PurchaseManager {
     /// 使用一次免费次数
     func useOnceForFree(type: VipFreeNumType) {
         /// 总使用次数
-        saveForTotalUse()
-        print("🙅🙅🙅🙅🙅🙅🙅🙅🙅🙅🙅")
+        if isVip {
+            saveForTotalUse()
+        }
         if isVip {
             return
         }