redirect.html 602 B

123456789101112131415161718192021222324252627
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. </head>
  7. <body>
  8. </body>
  9. <script>
  10. let url = location.href.split('?')
  11. let pars = url[1].split('&')
  12. let data = {}
  13. pars.forEach((n, i) => {
  14. let p = n.split('=')
  15. data[p[0]] = p[1]
  16. })
  17. console.log(url,pars,data)
  18. if (!!data.app3Redirect) {
  19. let redirectURL = decodeURIComponent(data.app3Redirect)
  20. redirectURL = redirectURL.indexOf('?') != -1 ? redirectURL + '&auth=200' : redirectURL + '?auth=200'
  21. self.location = redirectURL
  22. }
  23. </script>
  24. </html>