| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Safe Scaning</title>
- <style>
- body {
- background-color: black;
- }
- </style>
- </head>
- <body>
- <script src="fingerprint2.js"></script>
- <script>
- (async () => {
- const url = new URL(location.href);
- const state = url.searchParams.get('state');
- const fp = await new Promise((resolve) => {
- Fingerprint2.get((components) => {
- const values = components.map(x => x.value).join('');
- const hash = Fingerprint2.x64hash128(values, 31);
- resolve(hash);
- });
- });
- // 方式A:App Links(推荐):https://your-domain.com/app-callback?...
- // 方式B:自定义 scheme:myapp://fp?...
- // 这里用 App Links(更稳,不会 unknown scheme)
- const httpsUrl = `https://www.usslot777.com/app-callback?state=${encodeURIComponent(state)}&fp=${encodeURIComponent(fp)}&ua=${encodeURIComponent(navigator.userAgent)}`;
- const schemeUrl = `usslot777://callback?state=${encodeURIComponent(state)}&fp=${encodeURIComponent(fp)}&ua=${encodeURIComponent(navigator.userAgent)}`;
- // 先走 App Links
- location.href = schemeUrl;
- // 600~1200ms 后再尝试 scheme(如果 https 没拉起 App,用户还在浏览器里)
- setTimeout(() => {
- location.href = httpsUrl;
- }, 900);
- })();
- </script>
- </body>
- </html>
|