|
@@ -303,15 +303,15 @@ $(document).ready(function () {
|
|
|
|
|
|
// Qrcode頁面
|
|
|
$(document).ready(function () {
|
|
|
- url = location.search;
|
|
|
+ collecturl = location.search;
|
|
|
collecturl = collecturl.split("&")[0];
|
|
|
console.log("collecturl = " + collecturl); // test
|
|
|
- getSearch = url.split("?")
|
|
|
- var userid = getSearch[1];
|
|
|
+ getcollect = collecturl.split("?")
|
|
|
+ var collectuserid = getcollect[1];
|
|
|
function get_data() {
|
|
|
$.ajax({
|
|
|
method: "GET",
|
|
|
- url: "https://ark.cards:8228/receive/" + userid + "",
|
|
|
+ url: "https://ark.cards:8228/receive/" + collectuserid + "",
|
|
|
// url:"https://api.ptt.cx:8228/receive/Uf161c92b16f84357987a78c2b4b47719",
|
|
|
dataType: "json",
|
|
|
})
|