|
@@ -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) {
|
|
|
-//
|
|
|
-// }];
|
|
|
}
|
|
|
}
|
|
|
|