123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- //
- // APPdelegateModularForTest.m
- // jiaPei
- //
- // Created by 张嵘 on 2020/11/23.
- // Copyright © 2020 JCZ. All rights reserved.
- //
- #import "APPdelegateModularForTest.h"
- #import "RQAppEventAnnotation.h"
- RQAppEventMod(APPdelegateModularForTest)
- @implementation APPdelegateModularForTest
- - (NSInteger)moduleLevel {
- return 5;
- }
- - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- [self initMudule];
- // [self destroyModule];
- return YES;
- }
- - (void)initMudule {
- #if DEBUG
- [self test];
- [self test2];
- #endif
- }
- - (void)test {
- /// 36252719790810003X 110753
- /// * 获取转校状态
- /// * URL=http://192.168.1.6:8082/student/getStudentChangeSchool?ts={timestamp}&sign={sign_str}&user={cert_sn}
- /// * HTTP方法:POST
- /// * 报文格式:{'stuOutId':'3502004042','dqbh':'3502'}
- /// * SCS_IN_SCHOOL_AUDIT 0-学员待确认(待接收) 1-驾校同意 2-驾校不接收 3-学员同意 4-学员拒绝
- /// * SCS_AUDIT_VIEW 管理部门审核情况:0-待审核 1-通过 2-退回
-
- NSMutableArray *arr = [NSMutableArray array];
- [arr addObject:[NSDictionary dictionaryWithObjectsAndKeys:RQ_USER_MANAGER.currentUser.outId,@"stuOutId", nil]];
- [arr addObject:[NSDictionary dictionaryWithObjectsAndKeys:RQ_USER_MANAGER.currentUser.city,@"dqbh", nil]];
-
- NSString *method= @"getStudentChangeSchool";
-
- [jiaPeiManager requestAnythingWithURL:method array:arr data:nil completion:^(NSDictionary *dict) {
- RemoveHUD();
- if ([dict[@"code"] isEqualToString:@"0"]) {
- /// 3同意 4拒绝
- // [self testWithAudit:@"3"];
- }
- }];
-
-
- }
- - (void)test2 {
- [LOCATION_MANAGER updateLocationWithCompleteBlock:^(BOOL success, CLLocation * _Nullable location, BMKLocation * _Nullable bmkLocation) {
-
- }];
- }
- @end
|