1234567891011121314151617181920212223242526272829303132 |
- //
- // RQHTTPService+PostWxJsjpcode.m
- // jiaPei
- //
- // Created by Ning.ge on 2025/3/31.
- // Copyright © 2025 JCZ. All rights reserved.
- //
- #import "RQHTTPService+PostWxJsjpcode.h"
- @implementation RQHTTPService (PostWxJsjpcode)
- /**
- 获取openid 判断是否绑定
-
- @param code
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)postWxWithjsjpcode:(NSString *)code {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- subscript[@"authorizationCode"] = code;
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_Jsjpcode parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[NYJsCodeModel class]]
- rq_parsedResults];
- }
- @end
|