Kaynağa Gözat

无用代码删除

桂欢 1 yıl önce
ebeveyn
işleme
97f8edb9fb

+ 0 - 16
SLAiELTS/SLAiELTS/ViewControllers/LoginVC/Models/SLUserModel.m

@@ -37,14 +37,6 @@
 + (void)requestUserRoleModel {
     NSString *userId = [SLGlobalInfo SharedInstance].loginInfo.user.userId;
     if (userId) {
-//        [[SLHttpCenter SharedInstance] getWithUrl:@"/api/User/HomePage" parameter:@{} success:^(id responseObject) {
-//            NSDictionary *dict = [responseObject objectForKey:@"data"];
-//            NSDictionary *modelDict = [dict objectForKey:@"list"];
-////            [SLGlobalInfo SharedInstance].roleModel = [RoleModel mj_objectWithKeyValues:modelDict];
-//            [SLGlobalInfo SharedInstance].loginInfo.isAiData = [[dict objectForKey:@"isAiData"] boolValue];
-//        } failure:^(SPRequestError *error) {
-//            
-//        }];
         [[SLHttpCenter SharedInstance] getWithUrl:@"/api/User/GetAssistantInfo" parameter:@{} success:^(id responseObject) {
             NSDictionary *dict = [responseObject objectForKey:@"data"];
             if ([dict isKindOfClass:NSDictionary.class]) {
@@ -53,14 +45,6 @@
         } failure:^(SPRequestError *error) {
             
         }];
-//        [[SLHttpCenter SharedInstance] getWithUrl:@"/api/User/GetUserGoal" parameter:@{} success:^(id responseObject) {
-//            NSDictionary *dict = [responseObject objectForKey:@"data"];
-//            if ([dict isKindOfClass:NSDictionary.class]) {
-//                [SLGlobalInfo SharedInstance].targetModel = [SLTargetModel mj_objectWithKeyValues:dict];
-//            }
-//        } failure:^(SPRequestError *error) {
-//
-//        }];
     }
 }