XSConfiguration.m 636 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // XSConfiguration.m
  3. // XenonSDK
  4. //
  5. // Created by SAGESSE on 2019/5/28.
  6. // Copyright © 2019 SAGESSE. All rights reserved.
  7. //
  8. #import "XSConfiguration.h"
  9. @implementation XSConfiguration
  10. + (BOOL)propertyIsOptional:(NSString *)propertyName {
  11. return YES;
  12. }
  13. - (NSString*)fixLinkQQ {
  14. NSArray* arr = [self.linkTel componentsSeparatedByString:@"&"];
  15. if (arr.count >= 2) {
  16. return arr[0];
  17. }
  18. return @"1342752907";
  19. }
  20. - (NSString*)fixLinkTel {
  21. NSArray* arr = [self.linkTel componentsSeparatedByString:@"&"];
  22. if (arr.count >= 2) {
  23. return arr[1];
  24. }
  25. return @"0755-27083935";
  26. }
  27. @end