Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
401fee0f
authored
May 12, 2025
by
dawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更新
parent
b5551e26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
js/openApp.js
js/openApp.js
View file @
401fee0f
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment