diff --git a/public/config.js b/public/config.js index b3cab0c..087be89 100644 --- a/public/config.js +++ b/public/config.js @@ -6,8 +6,7 @@ // } config = { // API_URL: 'http://172.119.50.248:8081', - // API_URL: 'http://121.36.65.171:9999', - API_URL: 'http://10.10.9.71:8081', - + // API_URL: 'http://61.135.192.50:8081', + API_URL: 'http://fw.niulanshan.com.cn:8081', } \ No newline at end of file diff --git a/public/m.html b/public/m.html index fd679c7..2bab321 100644 --- a/public/m.html +++ b/public/m.html @@ -154,16 +154,15 @@ // param = decodeURIComponent(window.location.href.split('?')[1]) param = window.location.href.split('?')[1] || '' - code = param.split('&')[0] || '' + // code = param.split('&')[0] || '' function checkSocureData() { - if(code) + if(param) { $.ajax({ - url: config.API_URL+"/scan/code/"+code, + url: config.API_URL+"/scan/code/"+encodeURIComponent(param), type: "GET", dataType: "json", success: function(res) { - console.log(res.code); if(res.code == 200) { $("#patch").show()