No Description

PFTokenManager.m 685B

1234567891011121314151617181920212223242526
  1. //
  2. // PFTokenManager.m
  3. // PublicFund
  4. //
  5. // Created by kuxuan on 2018/1/4.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "PFTokenManager.h"
  9. @implementation PFTokenManager
  10. + (void)requestTid:(NSString *)tid Token:(void(^)(NSString *getToken,NSString *returnUrl,NSString *requestUrl))returnToken{
  11. NSString *urlString = [NSString stringWithFormat:@"https://api.security.726p.com/api/token/getToken"];
  12. // [PFHTTP post:urlString params:@{@"tid":tid} success:^(id json) {
  13. // if (json[@"token"]) {
  14. // returnToken(json[@"token"],json[@"returnUrl"],json[@"requestUrl"]);
  15. // }
  16. // } failure:^(NSError *error) {
  17. //
  18. // }];
  19. }
  20. @end