|
@@ -27,21 +27,12 @@ console.log(1);
|
|
|
|
|
|
|
|
|
$(document).ready(function () {
|
|
|
- var url = location.search;
|
|
|
- var rid;
|
|
|
- if (url.indexOf("?") != -1) {
|
|
|
- var str = url.substr(1);
|
|
|
- // str.split("=")[0] 為 userID
|
|
|
- rid = str.split("=")[1];
|
|
|
- }
|
|
|
- if (rid == undefined) {
|
|
|
- rid = '';
|
|
|
- }
|
|
|
- console.log(rid)
|
|
|
+ var userid = location.search;
|
|
|
+ console.log(location.search);
|
|
|
function get_data() {
|
|
|
$.ajax({
|
|
|
method: "GET",
|
|
|
- url: "https://api.ptt.cx:8228/receive/" + rid + "",
|
|
|
+ url: "https://api.ptt.cx:8228/receive/" + userid + "",
|
|
|
dataType: "json",
|
|
|
})
|
|
|
.done(function (msg) {
|