Ken 1 hafta önce
ebeveyn
işleme
264a6028fd

+ 1 - 2
app/Http/Controllers/api/Fingerprint.php

@@ -13,8 +13,7 @@ class Fingerprint extends BaseController
     public function index()
     {
         $memberId = request()->input('member_id');
-        return $memberId;
-//        return view('login');
+        return view('login');
     }
 
     public function setVisitorId()

+ 16 - 0
resources/views/login.html

@@ -6,5 +6,21 @@
 </head>
 <body>
 ssssss
+
+
+<script>
+    // 获取当前页面的 URL
+    const currentUrl = window.location.href;
+
+    // 创建一个 URL 对象
+    const url = new URL(currentUrl);
+
+    // 获取查询参数
+    const params = new URLSearchParams(url.search);
+
+    // 示例:获取特定参数的值
+    const memberId = params.get('member_id'); // 替换 'paramName' 为你想要获取的参数名
+    console.log('memberId', memberId)
+</script>
 </body>
 </html>