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);
2424typedef void (^GyVerifyCallback)(BOOL isCloudVerifySuccess, BOOL isSmsSendSuccess, NSError *error);
2525
2626/* *
27- * 验证类型
27+ * 验证方式
2828 */
2929
3030typedef NS_ENUM (NSUInteger , GyVerifyType) {
@@ -51,11 +51,26 @@ typedef NS_ENUM(NSUInteger, GyVerifyType) {
5151 */
5252
5353+ (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+ */
5562+ (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+ */
5770+ (void )smsVerifyCode : (NSString *)code withPnMD5 : (NSString *)pnMD5 withCallback : (GyCallback)callback ;
58-
59- + (void )destory ;
71+ /* *
72+ * 销毁 SDK
73+ */
74+ + (void )destroy ;
6075
6176@end
You can’t perform that action at this time.
0 commit comments