File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ typedef void (^GyCallback)(BOOL isSuccess, NSError *error);
24
24
typedef void (^GyVerifyCallback)(BOOL isCloudVerifySuccess, BOOL isSmsSendSuccess, NSError *error);
25
25
26
26
/* *
27
- * 验证类型
27
+ * 验证方式
28
28
*/
29
29
30
30
typedef NS_ENUM (NSUInteger , GyVerifyType) {
@@ -51,11 +51,26 @@ typedef NS_ENUM(NSUInteger, GyVerifyType) {
51
51
*/
52
52
53
53
+ (void )startWithAppId : (NSString *)aAppId withCallback : (GyCallback)callback ;
54
-
54
+ /* *
55
+ * 云验证接口
56
+ *
57
+ * @param type 验证方式
58
+ * @param pnMD5 手机号md5值,32位小写
59
+ * @param smsTemplateId 自定义短信模板 id,申请 AppId 时配置
60
+ * @param callback 验证接口回调
61
+ */
55
62
+ (void )verifyForType : (GyVerifyType)type withPnMD5 : (NSString *)pnMD5 withSmsTemplateId : (NSString *)smsTemplateId withCallback : (GyVerifyCallback)callback ;
56
-
63
+ /* *
64
+ * 短信校验接口
65
+ *
66
+ * @param code 短信验证码
67
+ * @param pnMD5 手机号md5值,32位小写
68
+ * @param callback 通用接口回调
69
+ */
57
70
+ (void )smsVerifyCode : (NSString *)code withPnMD5 : (NSString *)pnMD5 withCallback : (GyCallback)callback ;
58
-
59
- + (void )destory ;
71
+ /* *
72
+ * 销毁 SDK
73
+ */
74
+ + (void )destroy ;
60
75
61
76
@end
You can’t perform that action at this time.
0 commit comments