Просмотр исходного кода

1.一般接口超时时间15s.
2.上传下载接口超时时间300s

Steven 4 лет назад
Родитель
Сommit
028c43aab8

+ 2 - 2
MusicGradeExam/MusicGradeExam/AppDelegate.m

@@ -285,8 +285,8 @@
     [[RCIMClient sharedRCIMClient] setReconnectKickEnable:YES];
     
     
-    [[RCIMClient sharedRCIMClient] setLogLevel:RC_Log_Level_Verbose];
-    [self redirectNSlogToDocumentFolder];
+//    [[RCIMClient sharedRCIMClient] setLogLevel:RC_Log_Level_Verbose];
+//    [self redirectNSlogToDocumentFolder];
     
 }
 

+ 1 - 1
MusicGradeExam/MusicGradeExam/Tools/NetworkManager/KSNetworking.m

@@ -22,7 +22,7 @@ static NSDictionary     *headers;
 
 static KSNetworkStatus  networkStatus;
 
-static NSTimeInterval   requestTimeout = 20.0f;  // 超时时间
+static NSTimeInterval   requestTimeout = 15.0f;  // 超时时间
 
 @interface KSNetworking ()