Skip to content

Commit c49ebcd

Browse files
committed
[update]: update frameowrk to 1.1.3.0
1 parent bd5ac76 commit c49ebcd

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

GYSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "GYSDK"
19-
s.version = "1.1.0.0"
19+
s.version = "1.1.3.0"
2020
s.summary = "个验 iOS SDK CocoaPods 集成库"
2121

2222
# This description is used to generate tags and improve search results.

GeYanSdk.framework/GeYanSdk

3.18 MB
Binary file not shown.

GeYanSdk.framework/Headers/GeYanSdk.h

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import <Foundation/Foundation.h>
1010
/**
11-
* 通用接口回调
11+
* 注册接口回调
1212
*
1313
* @param isSuccess 成功标志位
1414
* @param error 错误信息
@@ -17,11 +17,17 @@ typedef void (^GyCallback)(BOOL isSuccess, NSError *error);
1717
/**
1818
* 验证接口回调
1919
*
20-
* @param isCloudVerifySuccess 云验证成功标志位
21-
* @param isSmsSendSuccess 短信发送成功标志位
22-
* @param error 错误信息
20+
* @param verifyDictionary 返回调用结果信息
2321
*/
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);
2531

2632
/**
2733
* 验证方式
@@ -42,14 +48,29 @@ typedef NS_ENUM(NSUInteger, GyVerifyType) {
4248
GyVerifyTypeSms,
4349
};
4450

51+
4552
@interface GeYanSdk : NSObject
4653

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+
4769
/**
4870
* 初始化个验 SDK
4971
*
5072
* @param aAppId appid
5173
*/
52-
5374
+ (void)startWithAppId:(NSString *)aAppId withCallback:(GyCallback)callback;
5475
/**
5576
* 云验证接口
@@ -67,7 +88,7 @@ typedef NS_ENUM(NSUInteger, GyVerifyType) {
6788
* @param pnMD5 手机号md5值,32位小写
6889
* @param callback 通用接口回调
6990
*/
70-
+ (void)smsVerifyCode:(NSString *)code withPnMD5:(NSString *)pnMD5 withCallback:(GyCallback)callback;
91+
+ (void)smsVerifyCode:(NSString *)code withPnMD5:(NSString *)pnMD5 withCallback:(GySmsVerifyCallback)callback;
7192
/**
7293
* 销毁 SDK
7394
*/

GeYanSdk.framework/Info.plist

-707 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)