APPdelegateModularForTest.m 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // APPdelegateModularForTest.m
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2020/11/23.
  6. // Copyright © 2020 JCZ. All rights reserved.
  7. //
  8. #import "APPdelegateModularForTest.h"
  9. #import "RQAppEventAnnotation.h"
  10. RQAppEventMod(APPdelegateModularForTest)
  11. @implementation APPdelegateModularForTest
  12. - (NSInteger)moduleLevel {
  13. return 5;
  14. }
  15. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  16. [self initMudule];
  17. // [self destroyModule];
  18. return YES;
  19. }
  20. - (void)initMudule {
  21. #if DEBUG
  22. [self test];
  23. [self test2];
  24. #endif
  25. }
  26. - (void)test {
  27. /// 36252719790810003X 110753
  28. /// * 获取转校状态
  29. /// * URL=http://192.168.1.6:8082/student/getStudentChangeSchool?ts={timestamp}&sign={sign_str}&user={cert_sn}
  30. /// * HTTP方法:POST
  31. /// * 报文格式:{'stuOutId':'3502004042','dqbh':'3502'}
  32. /// * SCS_IN_SCHOOL_AUDIT 0-学员待确认(待接收) 1-驾校同意 2-驾校不接收 3-学员同意 4-学员拒绝
  33. /// * SCS_AUDIT_VIEW 管理部门审核情况:0-待审核 1-通过 2-退回
  34. NSMutableArray *arr = [NSMutableArray array];
  35. [arr addObject:[NSDictionary dictionaryWithObjectsAndKeys:RQ_USER_MANAGER.currentUser.outId,@"stuOutId", nil]];
  36. [arr addObject:[NSDictionary dictionaryWithObjectsAndKeys:RQ_USER_MANAGER.currentUser.city,@"dqbh", nil]];
  37. NSString *method= @"getStudentChangeSchool";
  38. [jiaPeiManager requestAnythingWithURL:method array:arr data:nil completion:^(NSDictionary *dict) {
  39. RemoveHUD();
  40. if ([dict[@"code"] isEqualToString:@"0"]) {
  41. /// 3同意 4拒绝
  42. // [self testWithAudit:@"3"];
  43. }
  44. }];
  45. }
  46. - (void)test2 {
  47. [LOCATION_MANAGER updateLocationWithCompleteBlock:^(BOOL success, CLLocation * _Nullable location, BMKLocation * _Nullable bmkLocation) {
  48. }];
  49. }
  50. @end