修复bug
This commit is contained in:
@@ -12197,7 +12197,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 20.20.2;
|
MARKETING_VERSION = 20.20.3;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
@@ -12232,7 +12232,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 20.20.2;
|
MARKETING_VERSION = 20.20.3;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
PRODUCT_BUNDLE_IDENTIFIER = com.peko.enterprise.ios;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||||
|
@@ -31,7 +31,7 @@
|
|||||||
</Testables>
|
</Testables>
|
||||||
</TestAction>
|
</TestAction>
|
||||||
<LaunchAction
|
<LaunchAction
|
||||||
buildConfiguration = "Debug"
|
buildConfiguration = "Release"
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||||
launchStyle = "0"
|
launchStyle = "0"
|
||||||
|
@@ -49,7 +49,7 @@ isPhoneXSeries = [[UIApplication sharedApplication] delegate].window.safeAreaIns
|
|||||||
|
|
||||||
|
|
||||||
///内置版本号
|
///内置版本号
|
||||||
#define PI_App_Version @"2.3.0"
|
#define PI_App_Version @"2.3.1"
|
||||||
///渠道
|
///渠道
|
||||||
#define PI_App_Source @"appstore"
|
#define PI_App_Source @"appstore"
|
||||||
//#define PI_App_Source @"pi_tf"
|
//#define PI_App_Source @"pi_tf"
|
||||||
|
@@ -498,10 +498,8 @@
|
|||||||
///进入房间,如果自己在麦上,需要调下上麦,不然,网络不好,会导致人不在麦上,但有声音
|
///进入房间,如果自己在麦上,需要调下上麦,不然,网络不好,会导致人不在麦上,但有声音
|
||||||
RoomInfoModel * roomInfo =self.hostDelegate.getRoomInfo;
|
RoomInfoModel * roomInfo =self.hostDelegate.getRoomInfo;
|
||||||
NSString * roomId = [NSString stringWithFormat:@"%ld", roomInfo.uid];
|
NSString * roomId = [NSString stringWithFormat:@"%ld", roomInfo.uid];
|
||||||
BOOL isInMic = NO;
|
|
||||||
for (MicroQueueModel *sequence in self.micQueue.allValues) {
|
for (MicroQueueModel *sequence in self.micQueue.allValues) {
|
||||||
if ([AccountInfoStorage instance].getUid.integerValue == sequence.userInfo.uid) {
|
if ([AccountInfoStorage instance].getUid.integerValue == sequence.userInfo.uid) {
|
||||||
isInMic = YES;
|
|
||||||
NIMChatroomQueueUpdateRequest *request = [[NIMChatroomQueueUpdateRequest alloc]init];
|
NIMChatroomQueueUpdateRequest *request = [[NIMChatroomQueueUpdateRequest alloc]init];
|
||||||
request.key = @(sequence.microState.position).stringValue;
|
request.key = @(sequence.microState.position).stringValue;
|
||||||
request.value = [sequence.userInfo toJSONString];
|
request.value = [sequence.userInfo toJSONString];
|
||||||
@@ -509,7 +507,7 @@
|
|||||||
request.transient = YES;
|
request.transient = YES;
|
||||||
[[NIMSDK sharedSDK].chatroomManager updateChatroomQueueObject:request completion:^(NSError * _Nullable error) {
|
[[NIMSDK sharedSDK].chatroomManager updateChatroomQueueObject:request completion:^(NSError * _Nullable error) {
|
||||||
}];
|
}];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -937,7 +937,6 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
|||||||
[[XPRoomMiniManager shareManager] configCurrentMusic:nil isPlaying:NO];
|
[[XPRoomMiniManager shareManager] configCurrentMusic:nil isPlaying:NO];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///展示个播上划引导
|
///展示个播上划引导
|
||||||
- (void)showAnchorScrollTipView {
|
- (void)showAnchorScrollTipView {
|
||||||
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
|
||||||
@@ -948,35 +947,6 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
|||||||
[window bringSubviewToFront:self.anchorScrollTipView];
|
[window bringSubviewToFront:self.anchorScrollTipView];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
///判断是否被踢出房间
|
|
||||||
- (BOOL)isKictOutLatest:(NSString *)key mainKey:(NSString *)mainKey{
|
|
||||||
NSMutableDictionary *kickedList = [[NSUserDefaults standardUserDefaults]valueForKey:mainKey];
|
|
||||||
if([kickedList isKindOfClass:[NSString class]]){
|
|
||||||
kickedList = nil;
|
|
||||||
}
|
|
||||||
if(kickedList == nil){
|
|
||||||
kickedList = [NSMutableDictionary dictionary];
|
|
||||||
}else{
|
|
||||||
kickedList = [[NSMutableDictionary alloc]initWithDictionary:kickedList];
|
|
||||||
}
|
|
||||||
NSString *kictOutTime = [kickedList valueForKey:key];
|
|
||||||
if (kictOutTime) {
|
|
||||||
NSDate* date = [NSDate dateWithTimeIntervalSinceNow:0];
|
|
||||||
NSTimeInterval time = [date timeIntervalSince1970];
|
|
||||||
NSString *currentTime = [NSString stringWithFormat:@"%.0f", time];
|
|
||||||
//是否超过5分钟
|
|
||||||
if ([currentTime intValue] - [kictOutTime intValue] > 5 * 60) {
|
|
||||||
[[NSUserDefaults standardUserDefaults] removeObjectForKey:key];
|
|
||||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
|
||||||
return NO;
|
|
||||||
} else {
|
|
||||||
return YES;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-(void)requesstShieldingAction{
|
-(void)requesstShieldingAction{
|
||||||
[self.presenter requesstShieldingWtihType:@"1" objId:[NSString stringWithFormat:@"%ld",self.roomInfo.uid]];
|
[self.presenter requesstShieldingWtihType:@"1" objId:[NSString stringWithFormat:@"%ld",self.roomInfo.uid]];
|
||||||
}
|
}
|
||||||
@@ -1006,8 +976,8 @@ NSString * const kHadQuitOtherRoomKey = @"kHadQuitOtherRoomKey";//是否退出
|
|||||||
NSString *uid = [[AccountInfoStorage instance]getUid];
|
NSString *uid = [[AccountInfoStorage instance]getUid];
|
||||||
for (id obj in list) {
|
for (id obj in list) {
|
||||||
if([obj integerValue] == [uid integerValue]){
|
if([obj integerValue] == [uid integerValue]){
|
||||||
|
[self exitRoom];
|
||||||
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPRoomViewController0")];
|
[XNDJTDDLoadingTool showErrorWithMessage:YMLocalizedString(@"XPRoomViewController0")];
|
||||||
[self dismissViewControllerAnimated:YES completion:nil];
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -66,7 +66,7 @@
|
|||||||
NSLog(@"\nmethod:\n%@\nparameter:\n%@", method, params);
|
NSLog(@"\nmethod:\n%@\nparameter:\n%@", method, params);
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NSString *url = API_HOST_URL;
|
NSString *url = [self getHostUrl];
|
||||||
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,method];
|
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,method];
|
||||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||||
[BSNetListenModel addHttpReq:urlPath header:manager.requestSerializer.HTTPRequestHeaders param:[params copy] time:[NSDate getCurrentTimeWithFormat:@"yyyy-MM-dd HH:mm:ss"]];
|
[BSNetListenModel addHttpReq:urlPath header:manager.requestSerializer.HTTPRequestHeaders param:[params copy] time:[NSDate getCurrentTimeWithFormat:@"yyyy-MM-dd HH:mm:ss"]];
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NSLog(@"\nmethod:\n%@\nparameter:\n%@", method, params);
|
NSLog(@"\nmethod:\n%@\nparameter:\n%@", method, params);
|
||||||
|
|
||||||
NSString *url = API_HOST_URL;
|
NSString *url = [self getHostUrl];
|
||||||
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,method];
|
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,method];
|
||||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||||
[BSNetListenModel addHttpReq:urlPath header:manager.requestSerializer.HTTPRequestHeaders param:[params copy] time:[NSDate getCurrentTimeWithFormat:@"yyyy-MM-dd HH:mm:ss"]];
|
[BSNetListenModel addHttpReq:urlPath header:manager.requestSerializer.HTTPRequestHeaders param:[params copy] time:[NSDate getCurrentTimeWithFormat:@"yyyy-MM-dd HH:mm:ss"]];
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
AFHTTPSessionManager *manager = [HttpRequestHelper requestManager];
|
AFHTTPSessionManager *manager = [HttpRequestHelper requestManager];
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NSLog(@"\nmethod:\n%@\nparameter:\n%@", method, params);
|
NSLog(@"\nmethod:\n%@\nparameter:\n%@", method, params);
|
||||||
NSString *url = API_HOST_URL;
|
NSString *url = [self getHostUrl];
|
||||||
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,method];
|
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,method];
|
||||||
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
dispatch_async(dispatch_get_global_queue(0, 0), ^{
|
||||||
[BSNetListenModel addHttpReq:urlPath header:manager.requestSerializer.HTTPRequestHeaders param:[params copy] time:[NSDate getCurrentTimeWithFormat:@"yyyy-MM-dd HH:mm:ss"]];
|
[BSNetListenModel addHttpReq:urlPath header:manager.requestSerializer.HTTPRequestHeaders param:[params copy] time:[NSDate getCurrentTimeWithFormat:@"yyyy-MM-dd HH:mm:ss"]];
|
||||||
@@ -323,7 +323,7 @@
|
|||||||
[self configHeaders];
|
[self configHeaders];
|
||||||
NSDictionary *baseParams = [self configBaseParmars:nil];
|
NSDictionary *baseParams = [self configBaseParmars:nil];
|
||||||
AFHTTPSessionManager *manager = [HttpRequestHelper requestManager];
|
AFHTTPSessionManager *manager = [HttpRequestHelper requestManager];
|
||||||
NSString *url = API_HOST_URL;
|
NSString *url = [self getHostUrl];
|
||||||
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,path];
|
NSString *urlPath = [NSString stringWithFormat:@"%@/%@", url ,path];
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NSLog(@"\nmethod:\n%@\nparameter:\n%@", path, params);
|
NSLog(@"\nmethod:\n%@\nparameter:\n%@", path, params);
|
||||||
@@ -340,7 +340,8 @@
|
|||||||
}];
|
}];
|
||||||
|
|
||||||
urlPath = [NSString stringWithFormat:@"%@?%@", urlPath, requestUrl];
|
urlPath = [NSString stringWithFormat:@"%@?%@", urlPath, requestUrl];
|
||||||
|
urlPath = [urlPath stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
||||||
|
|
||||||
NSMutableURLRequest *request = [[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:urlPath parameters:baseParams error:nil];
|
NSMutableURLRequest *request = [[AFJSONRequestSerializer serializer] requestWithMethod:@"POST" URLString:urlPath parameters:baseParams error:nil];
|
||||||
request.timeoutInterval= [[[NSUserDefaults standardUserDefaults] valueForKey:@"timeoutInterval"] longValue];
|
request.timeoutInterval= [[[NSUserDefaults standardUserDefaults] valueForKey:@"timeoutInterval"] longValue];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user