修改了私聊等级限制请求参数错误的问题
This commit is contained in:
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@interface Api (Message)
|
@interface Api (Message)
|
||||||
|
|
||||||
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection;
|
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection receiverUid:(NSString *)receiverUid ;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
@implementation Api (Message)
|
@implementation Api (Message)
|
||||||
|
|
||||||
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection {
|
+ (void)getChatLimit:(HttpRequestHelperCompletion)complection receiverUid:(NSString *)receiverUid {
|
||||||
[self makeRequest:@"privateChat/limit" method:HttpRequestHelperMethodGET completion:complection, __FUNCTION__, nil];
|
[self makeRequest:@"privateChat/limit" method:HttpRequestHelperMethodGET completion:complection, __FUNCTION__, receiverUid,nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||||||
|
|
||||||
@interface MessagePresenter : BaseMvpPresenter
|
@interface MessagePresenter : BaseMvpPresenter
|
||||||
|
|
||||||
- (void)getChatLimit;
|
- (void)getChatLimitReceiverUid:(NSString *)receiverUid;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
@implementation MessagePresenter
|
@implementation MessagePresenter
|
||||||
|
|
||||||
- (void)getChatLimit {
|
- (void)getChatLimitReceiverUid:(NSString *)receiverUid {
|
||||||
[Api getChatLimit:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
[Api getChatLimit:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||||
ChatLimitModel *chatLimit = [ChatLimitModel modelWithJSON:data.data];
|
ChatLimitModel *chatLimit = [ChatLimitModel modelWithJSON:data.data];
|
||||||
[[self getView] onGetLimitChat:chatLimit];
|
[[self getView] onGetLimitChat:chatLimit];
|
||||||
} showLoading:NO errorToast:NO]];
|
} showLoading:NO errorToast:NO] receiverUid:receiverUid];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@@ -98,7 +98,7 @@
|
|||||||
|
|
||||||
[[NIMSDK sharedSDK].conversationManager markAllMessagesReadInSession:self.session];
|
[[NIMSDK sharedSDK].conversationManager markAllMessagesReadInSession:self.session];
|
||||||
|
|
||||||
[self.presenter getChatLimit];
|
[self.presenter getChatLimitReceiverUid:self.session.sessionId];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)keyboardWillShow:(NSNotification *)notification {
|
- (void)keyboardWillShow:(NSNotification *)notification {
|
||||||
|
Reference in New Issue
Block a user