liushengqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
21f6145ab1
Modificáronse 2 ficheiros con 4 adicións e 1 borrados
  1. 3 0
      src/page-gym/evaluat-model/index.tsx
  2. 1 1
      src/page-gym/main.ts

+ 3 - 0
src/page-gym/evaluat-model/index.tsx

@@ -183,8 +183,11 @@ export default defineComponent({
 			}
 			let res = null;
 			if (state.setting.camera && state.setting.saveToAlbum) {
+				console.log(1)
 				res = await api_videoUpdate();
+				console.log(2)
 			}
+			console.log(3)
 			api_proxyServiceMessage({
 				header: {
 					commond: "videoUpload",

+ 1 - 1
src/page-gym/main.ts

@@ -16,7 +16,7 @@ import { setStoreData } from "../store";
 	const webBlank = ["mandev.dayaedu.com", "mantest.dayaedu.com", "manonline.dayaedu.com"];
 	const platformApi = blank.includes(location.hostname) ? "/api-teacher" : webBlank.includes(location.hostname) ? "/api-web" : "/api-student";
 	setStoreData({
-		isApp: u.includes("DAYAAPPA") || u.includes("DAYAAPPI"),
+		isApp: (window as any)?.DAYA || (window as any).webkit?.messageHandlers?.DAYA ? true : false,
 		platformApi,
 		platformType: platformApi === "/api-student" ? "STUDENT" : platformApi === "/api-teacher" ? "TEACHER" : "WEB",
 		proxy: import.meta.env.DEV ? "/gym" : "",