File tree Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
#
17
17
18
18
s . name = "GYSDK"
19
- s . version = "1.1.0 .0"
19
+ s . version = "1.1.3 .0"
20
20
s . summary = "个验 iOS SDK CocoaPods 集成库"
21
21
22
22
# This description is used to generate tags and improve search results.
Original file line number Diff line number Diff line change 8
8
9
9
#import < Foundation/Foundation.h>
10
10
/* *
11
- * 通用接口回调
11
+ * 注册接口回调
12
12
*
13
13
* @param isSuccess 成功标志位
14
14
* @param error 错误信息
@@ -17,11 +17,17 @@ typedef void (^GyCallback)(BOOL isSuccess, NSError *error);
17
17
/* *
18
18
* 验证接口回调
19
19
*
20
- * @param isCloudVerifySuccess 云验证成功标志位
21
- * @param isSmsSendSuccess 短信发送成功标志位
22
- * @param error 错误信息
20
+ * @param verifyDictionary 返回调用结果信息
23
21
*/
24
- typedef void (^GyVerifyCallback)(BOOL isCloudVerifySuccess, BOOL isSmsSendSuccess, NSError *error);
22
+ typedef void (^GyVerifyCallback)(NSDictionary *verifyDictionary);
23
+
24
+
25
+ /* *
26
+ * 验证码验证接口回调
27
+ *
28
+ * @param smsVerifyDictionary 短信验证结果信息
29
+ */
30
+ typedef void (^GySmsVerifyCallback)(NSDictionary *smsVerifyDictionary);
25
31
26
32
/* *
27
33
* 验证方式
@@ -42,14 +48,29 @@ typedef NS_ENUM(NSUInteger, GyVerifyType) {
42
48
GyVerifyTypeSms,
43
49
};
44
50
51
+
45
52
@interface GeYanSdk : NSObject
46
53
54
+
55
+ /* *
56
+ 设置debug模式,发布时不要设置,默认关闭
57
+
58
+ @param debug 是否打开调试
59
+ */
60
+ + (void )setDebug : (BOOL )debug ;
61
+
62
+ /* *
63
+ 获取SDK版本号
64
+
65
+ @return SDK版本号
66
+ */
67
+ + (NSString *)getVersion ;
68
+
47
69
/* *
48
70
* 初始化个验 SDK
49
71
*
50
72
* @param aAppId appid
51
73
*/
52
-
53
74
+ (void )startWithAppId : (NSString *)aAppId withCallback : (GyCallback)callback ;
54
75
/* *
55
76
* 云验证接口
@@ -67,7 +88,7 @@ typedef NS_ENUM(NSUInteger, GyVerifyType) {
67
88
* @param pnMD5 手机号md5值,32位小写
68
89
* @param callback 通用接口回调
69
90
*/
70
- + (void )smsVerifyCode : (NSString *)code withPnMD5 : (NSString *)pnMD5 withCallback : (GyCallback )callback ;
91
+ + (void )smsVerifyCode : (NSString *)code withPnMD5 : (NSString *)pnMD5 withCallback : (GySmsVerifyCallback )callback ;
71
92
/* *
72
93
* 销毁 SDK
73
94
*/
You can’t perform that action at this time.
0 commit comments