RQHTTPService+RQIsUsePhone.m 907 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // RQHTTPService+RQIsUsePhone.m
  3. // YYXC
  4. //
  5. // Created by 张嵘 on 2022/12/19.
  6. // Copyright © 2022 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService+RQIsUsePhone.h"
  9. @implementation RQHTTPService (RQIsUsePhone)
  10. /**
  11. 获取服务器时间
  12. @return Returns a signal which will send complete, or error.
  13. */
  14. - (RACSignal *)getIsUsePhone {
  15. /// 1. 配置参数
  16. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  17. subscript[@"outId"] = defUser.userDict[@"outId"];
  18. subscript[@"dqbh"] = defUser.userDict[@"city"];
  19. /// 2. 配置参数模型
  20. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_IsUsePhone parameters:subscript.dictionary];
  21. /// 3.发起请求
  22. return [[[RQHTTPRequest requestWithParameters:paramters]
  23. enqueueResultClass:nil]
  24. rq_parsedResults];
  25. }
  26. @end