Browse Source

修改酷乐秀推送证书

Steven 1 year ago
parent
commit
f4be8bc7e0

+ 3 - 6
KulexiuForStudent/KulexiuForStudent/Common/Base/KSBaseWKWebViewController.m

@@ -270,12 +270,9 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
 
 
 
 
 - (void)loadRequest {
 - (void)loadRequest {
-    MJWeakSelf;
-    [self.myWebView evaluateJavaScript:@"navigator.userAgent" completionHandler:^(id result, NSError *error) {
-        NSLog(@"%@",result);
-        NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:weakSelf.url] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60.0f];
-        [weakSelf.myWebView loadRequest:request];
-    }];
+    
+    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:self.url] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60.0f];
+    [self.myWebView loadRequest:request];
 }
 }
 
 
 - (NSString *)url {
 - (NSString *)url {

+ 3 - 3
KulexiuForStudent/KulexiuForStudent/Module/CloudEngine/MidiPlayer/MidiPlayerEngine.m

@@ -544,7 +544,7 @@
                         NSString *instruemntKey = [NSString stringWithFormat:@"%d",instrumentId];
                         NSString *instruemntKey = [NSString stringWithFormat:@"%d",instrumentId];
                         NSMutableArray *valueArray = [NSMutableArray array];
                         NSMutableArray *valueArray = [NSMutableArray array];
                         if ([[self.instrumentTrackParm allKeys] containsObject:instruemntKey]) {
                         if ([[self.instrumentTrackParm allKeys] containsObject:instruemntKey]) {
-                            valueArray = [self.instrumentTrackParm mutableArrayValueForKey:instruemntKey];
+                            valueArray = [self.instrumentTrackParm ks_mutableArrayValueForKey:instruemntKey];
                         }
                         }
 
 
                         [valueArray addObject:@(index)];
                         [valueArray addObject:@(index)];
@@ -643,7 +643,7 @@
 /**根据乐器编号获取所在轨道*/
 /**根据乐器编号获取所在轨道*/
 - (NSMutableArray *)getTrackWithInstrumentId:(UInt32)instrumentId {
 - (NSMutableArray *)getTrackWithInstrumentId:(UInt32)instrumentId {
     NSString *key = [NSString stringWithFormat:@"%d",instrumentId];
     NSString *key = [NSString stringWithFormat:@"%d",instrumentId];
-    return [self.instrumentTrackParm mutableArrayValueForKey:key];
+    return [self.instrumentTrackParm ks_mutableArrayValueForKey:key];
 }
 }
 /**设置对应乐器编号所在轨道的播放音量*/
 /**设置对应乐器编号所在轨道的播放音量*/
 - (BOOL)volumeTrackVolumeWithInstrumentId:(UInt32)instrumentId volume:(float)volume {
 - (BOOL)volumeTrackVolumeWithInstrumentId:(UInt32)instrumentId volume:(float)volume {
@@ -655,7 +655,7 @@
     if (instrumentId >= 0 && instrumentId <= 7) {
     if (instrumentId >= 0 && instrumentId <= 7) {
         instrumentId = 0;
         instrumentId = 0;
     }
     }
-    NSMutableArray *trackArray = [self.instrumentTrackParm mutableArrayValueForKey:[NSString stringWithFormat:@"%d",instrumentId]];
+    NSMutableArray *trackArray = [self.instrumentTrackParm ks_mutableArrayValueForKey:[NSString stringWithFormat:@"%d",instrumentId]];
     if (trackArray.count) {
     if (trackArray.count) {
         for (NSInteger index = 0; index < trackArray.count; index++) {
         for (NSInteger index = 0; index < trackArray.count; index++) {
            UInt32 track = [trackArray[index] intValue];
            UInt32 track = [trackArray[index] intValue];