Explorar o código

feat: 去掉摇篮曲特殊处理

TIANYONG hai 4 meses
pai
achega
737ff2292b
Modificáronse 3 ficheiros con 14 adicións e 14 borrados
  1. 1 1
      osmd-extended
  2. 11 11
      src/helpers/formateMusic.ts
  3. 2 2
      vite.config.ts

+ 1 - 1
osmd-extended

@@ -1 +1 @@
-Subproject commit 3dd0cde3a58899d08bbad902bb3704e3ac5ec6d2
+Subproject commit 6f3a126f8a6c84adf3e40e32b0704003acd5e321

+ 11 - 11
src/helpers/formateMusic.ts

@@ -1259,17 +1259,17 @@ export const formateTimes = (osmd: OpenSheetMusicDisplay) => {
 			/**
 			 * TODO:摇篮曲-人音-排箫(1788501975122489346),第12小节音符持续时间特殊处理
 			*/
-			if (['1788501975122489346','1788502467554750466'].includes(state.cbsExamSongId)) {
-				if (i == 13) {
-					noteLength = noteLength / 2;
-				}
-				if (i == 44) {
-					noteLength = noteLength * 6;
-				}
-				if (i == 56) {
-					noteLength = noteLength * 4;
-				}
-			}
+			// if (['1788501975122489346','1788502467554750466'].includes(state.cbsExamSongId)) {
+			// 	if (i == 13) {
+			// 		noteLength = noteLength / 2;
+			// 	}
+			// 	if (i == 44) {
+			// 		noteLength = noteLength * 6;
+			// 	}
+			// 	if (i == 56) {
+			// 		noteLength = noteLength * 4;
+			// 	}
+			// }
 			usetime += noteLength;
 			relaMeasureLength += noteLength;
 			let relaEndtime = noteLength + relativeTime;

+ 2 - 2
vite.config.ts

@@ -76,8 +76,8 @@ export default defineConfig({
         // target: "https://kt.colexiu.com",
         // target: "https://test.lexiaoya.cn",
         // target: "https://kt.colexiu.com",
-        //target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
-        target: "https://test.kt.colexiu.com",
+        target: "https://test.resource.colexiu.com", // 内容平台开发环境,内容平台开发,需在url链接上加上isCbs=true
+        // target: "https://test.kt.colexiu.com",
         // target: "https://mec.colexiu.com",
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/instrument/, ""),