12345678910111213141516171819202122232425262728293031 |
- //
- // RQHTTPService+RQGetCode.m
- // BuckDriverStudent
- //
- // Created by 张嵘 on 2021/2/1.
- // Copyright © 2021 lee. All rights reserved.
- //
- #import "RQHTTPService+RQGetCode.h"
- @implementation RQHTTPService (RQGetCode)
- /**
- 注册报名获取短信验证码
- @param telephone 手机号码
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getCodeWithTelePhone:(NSString *)telephone {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"tel"] = telephone;
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_Code parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:nil]
- rq_parsedResults];
- }
- @end
|