Browse Source

修改群简介

Steven 3 months ago
parent
commit
901cd3977e

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSNetworkingManager.h

@@ -534,7 +534,7 @@ NS_ASSUME_NONNULL_BEGIN
 /// @param faliure 失败
 + (void)groupMuteRequest:(NSString *)post groupId:(NSString *)groupId userIdArray:(NSMutableArray *)userIds groupMute:(BOOL)groupMute success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure;
 
-// /imGroup/update
+// /imGroup/updateIntroduce
 // 群简介修改
 /// @param post post json
 /// @param groupId 群ID

+ 2 - 2
KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSNetworkingManager.m

@@ -1140,7 +1140,7 @@
     [self request:post andWithUrl:url and:parm success:success faliure:faliure];
 }
 
-// /imGroup/update
+// /imGroup/updateIntroduce
 // 群简介修改
 /// @param post post json
 /// @param groupId 群ID
@@ -1149,7 +1149,7 @@
 /// @param faliure 失败
 + (void)imGroupIntroduceModifyRequest:(NSString *)post groupId:(NSString *)groupId introduce:(NSString *)introduce success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
     [self configRequestMethodJSON];
-    NSString *url = [NSString stringWithFormat:@"%@%@%@", hostURL, @"/api-teacher",@"/imGroup/update"];
+    NSString *url = [NSString stringWithFormat:@"%@%@%@", hostURL, @"/api-teacher",@"/imGroup/updateIntroduce"];
     NSMutableDictionary *parm = [NSMutableDictionary dictionary];
     [parm setValue:groupId forKey:@"id"];
     [parm setValue:introduce forKey:@"introduce"];

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Chat/Group/Controller/GroupSettingViewController.m

@@ -292,7 +292,7 @@
             GroupIntroduceViewController *ctrl = [[GroupIntroduceViewController alloc] init];
             ctrl.groupId = self.groupId;
             ctrl.groupIntroduce = self.sourceModel.introduce;
-            ctrl.canModify = NO;
+            ctrl.canModify = YES;
             [self.navigationController pushViewController:ctrl animated:YES];
         }
             break;