Steven 1 year ago
parent
commit
c7643da6e6

+ 14 - 14
KulexiuForTeacher/KulexiuForTeacher/Common/Define/KSDomain.h

@@ -10,13 +10,13 @@
 
 //#ifdef DEBUG
 
-//#define hostURL (@"https://dev.colexiu.com")
-//#define SEALCLASSHOST (@"https://dev.colexiu.com/api-classroom")
-//#define WEBHOST (@"https://dev.colexiu.com/teacher")
-//#define SOCKET_URL (@"wss://dev.colexiu.com/audioAnalysis")
-//#define JSPUSH_ENVIRONMENT (NO)
-//#define RCIM_KEY (@"0vnjpoad0jbdz")
-//#define SUBMIT_UUID (NO)
+#define hostURL (@"https://dev.colexiu.com")
+#define SEALCLASSHOST (@"https://dev.colexiu.com/api-classroom")
+#define WEBHOST (@"https://dev.colexiu.com/teacher")
+#define SOCKET_URL (@"wss://dev.colexiu.com/audioAnalysis")
+#define JSPUSH_ENVIRONMENT (NO)
+#define RCIM_KEY (@"0vnjpoad0jbdz")
+#define SUBMIT_UUID (NO)
 
 // 预生产环境
 //#define hostURL (@"https://ponline.colexiu.com")
@@ -29,13 +29,13 @@
 
 //#else
 
-#define hostURL (@"https://online.colexiu.com")
-#define SEALCLASSHOST (@"https://online.colexiu.com/api-classroom")
-#define WEBHOST (@"https://online.colexiu.com/teacher")
-#define SOCKET_URL (@"wss://online.colexiu.com/audioAnalysis")
-#define JSPUSH_ENVIRONMENT (YES)
-#define RCIM_KEY (@"e5t4ouvpe42pa")
-#define SUBMIT_UUID (YES)
+//#define hostURL (@"https://online.colexiu.com")
+//#define SEALCLASSHOST (@"https://online.colexiu.com/api-classroom")
+//#define WEBHOST (@"https://online.colexiu.com/teacher")
+//#define SOCKET_URL (@"wss://online.colexiu.com/audioAnalysis")
+//#define JSPUSH_ENVIRONMENT (YES)
+//#define RCIM_KEY (@"e5t4ouvpe42pa")
+//#define SUBMIT_UUID (YES)
 
 
 //#endif

+ 3 - 3
KulexiuForTeacher/KulexiuForTeacher/Module/MidiPlayer/MidiPlayerEngine.m

@@ -540,7 +540,7 @@
                         NSString *instruemntKey = [NSString stringWithFormat:@"%d",instrumentId];
                         NSMutableArray *valueArray = [NSMutableArray array];
                         if ([[self.instrumentTrackParm allKeys] containsObject:instruemntKey]) {
-                            valueArray = [self.instrumentTrackParm mutableArrayValueForKey:instruemntKey];
+                            valueArray = [self.instrumentTrackParm ks_mutableArrayValueForKey:instruemntKey];
                         }
                         
                         [valueArray addObject:@(index)];
@@ -635,7 +635,7 @@
 /**根据乐器编号获取所在轨道*/
 - (NSMutableArray *)getTrackWithInstrumentId:(UInt32)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 {
@@ -647,7 +647,7 @@
     if (instrumentId >= 0 && instrumentId <= 7) {
         instrumentId = 0;
     }
-    NSMutableArray *trackArray = [self.instrumentTrackParm mutableArrayValueForKey:[NSString stringWithFormat:@"%d",instrumentId]];
+    NSMutableArray *trackArray = [self.instrumentTrackParm ks_mutableArrayValueForKey:[NSString stringWithFormat:@"%d",instrumentId]];
     if (trackArray.count) {
         for (NSInteger index = 0; index < trackArray.count; index++) {
            UInt32 track = [trackArray[index] intValue];