瀏覽代碼

验证OPPO

liushengqiang 2 年之前
父節點
當前提交
21f6145ab1
共有 2 個文件被更改,包括 4 次插入1 次删除
  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" : "",