修改了私聊等级限制请求参数错误的问题
This commit is contained in:
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface Api (Message)
|
||||
|
||||
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection;
|
||||
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection receiverUid:(NSString *)receiverUid ;
|
||||
|
||||
@end
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface MessagePresenter : BaseMvpPresenter
|
||||
|
||||
- (void)getChatLimit;
|
||||
- (void)getChatLimitReceiverUid:(NSString *)receiverUid;
|
||||
|
||||
@end
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -98,7 +98,7 @@
|
||||
|
||||
[[NIMSDK sharedSDK].conversationManager markAllMessagesReadInSession:self.session];
|
||||
|
||||
[self.presenter getChatLimit];
|
||||
[self.presenter getChatLimitReceiverUid:self.session.sessionId];
|
||||
}
|
||||
|
||||
- (void)keyboardWillShow:(NSNotification *)notification {
|
||||
|
Reference in New Issue
Block a user