Commit 401fee0f by dawei

feat: 更新

parent b5551e26
Showing with 27 additions and 2 deletions
function commonOpenApp() { function commonOpenApp(obj) {
console.log("测试打开App") let ua = navigator.userAgent.toLowerCase();
if (/android/.test(ua)) {
let param = {
openData: {
paramInfo: obj.uid,
},
type: 2,
};
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2);
setTimeout(() => {
window.location.href =
"fireflyLive://firefly.com/open?openAppEventSchedule=" + mBase64;
}, 1000);
} else {
let param = {
type: 2,
paramInfo: $firefly.urlData.uid,
};
let param2 = JSON.stringify(param);
let mBase64 = btoa(param2); //要求要base64的,
const appScheme = "FireflyLive://open?openAppEventSchedule=" + mBase64; // 应用的 URL Scheme
// 尝试打开应用
window.location = appScheme;
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment