修改了私聊等级限制请求参数错误的问题

This commit is contained in:
fengshuo
2022-01-24 14:22:40 +08:00
parent 79de6a7b97
commit 2b574bb695
5 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface Api (Message)
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection;
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection receiverUid:(NSString *)receiverUid ;
@end

View File

@@ -9,8 +9,8 @@
@implementation Api (Message)
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection {
[self makeRequest:@"privateChat/limit" method:HttpRequestHelperMethodGET completion:complection, __FUNCTION__, nil];
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection receiverUid:(NSString *)receiverUid {
[self makeRequest:@"privateChat/limit" method:HttpRequestHelperMethodGET completion:complection, __FUNCTION__, receiverUid,nil];
}
@end

View File

@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface MessagePresenter : BaseMvpPresenter
- (void)getChatLimit;
- (void)getChatLimitReceiverUid:(NSString *)receiverUid;
@end

View File

@@ -12,11 +12,11 @@
@implementation MessagePresenter
- (void)getChatLimit {
- (void)getChatLimitReceiverUid:(NSString *)receiverUid {
[Api getChatLimit:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
ChatLimitModel *chatLimit = [ChatLimitModel modelWithJSON:data.data];
[[self getView] onGetLimitChat:chatLimit];
} showLoading:NO errorToast:NO]];
} showLoading:NO errorToast:NO] receiverUid:receiverUid];
}
@end

View File

@@ -98,7 +98,7 @@
[[NIMSDK sharedSDK].conversationManager markAllMessagesReadInSession:self.session];
[self.presenter getChatLimit];
[self.presenter getChatLimitReceiverUid:self.session.sessionId];
}
- (void)keyboardWillShow:(NSNotification *)notification {