Commit 17b16ac6 王帅

0.0.7

1 个父辈 50b205c5
......@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'WSAnti-Test'
s.version = '0.0.6'
s.version = '0.0.7'
s.summary = 'A test framework of ZAnti-Addiction.'
# This description is used to generate tags and improve search results.
......
......@@ -5,7 +5,7 @@
// Created by ws on 2022/12/5.
//
//
// 公开类
// Public
#import <Foundation/Foundation.h>
......@@ -15,10 +15,12 @@ NS_ASSUME_NONNULL_BEGIN
@protocol ZAAManagerDelegate <NSObject>
/// SDK已完成处理,可以开始游戏
/// Allow the game to start
- (void)ZAASDKCompleted;
/// 支付前检查,收到此方法代表可以支付
/// Receipt of this callback indicates that payment can be made
- (void)ZAASDKCheckPaySuccess;
......@@ -31,26 +33,39 @@ NS_ASSUME_NONNULL_BEGIN
+ (instancetype) sharedSDK;
+ (NSString*)version;
/// 本次已游玩时间,上报成功后清零
/// 本次已游玩时间,每1分钟会进行信息上报,上报成功后清零
/// Play time after this start
/// Report once every 1 minute,If the report is successful, the value is reset to 0
- (int)getPassTime;
/// 实名认证状态 0:未验证;1:验证通过;2:正在验证;3:认证失败
/// Get the status of user authencation
/// 0: No verified
/// 1: Has been verified
/// 2: Being verified
/// 3: Verified failure
- (int)getUserAuthenticationStatus;
/// 实名认证结果 1:成年;2:未成年
/// Check user is adult 1: adult ;2: nonage
- (int)getUserAgeGroup;
/// 剩余游戏时间
/// 剩余游戏时间(s)
/// remaining time for minors (s)
- (int)checkLeftTimeOfCurrentUser;
/// 游戏付费前调用,检查是否可以付费
/// @param amount 支付金额
/// amount 支付金额
/// check before making in-app purchases
/// @param amount pay amount
- (void)checkPayWithAmount:(NSString*)amount;
/// 游戏付费成功之后调用,告知服务端
/// @param amount 支付金额
/// amount 支付金额
/// Game payment after successful call, synchronization to the server
/// @param amount pay amount
- (void)recordPayWithAmount:(NSString*)amount;
@end
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!