|
@ -154,16 +154,15 @@ |
|
|
|
|
|
|
|
|
// param = decodeURIComponent(window.location.href.split('?')[1]) |
|
|
// param = decodeURIComponent(window.location.href.split('?')[1]) |
|
|
param = window.location.href.split('?')[1] || '' |
|
|
param = window.location.href.split('?')[1] || '' |
|
|
code = param.split('&')[0] || '' |
|
|
// code = param.split('&')[0] || '' |
|
|
function checkSocureData() { |
|
|
function checkSocureData() { |
|
|
if(code) |
|
|
if(param) |
|
|
{ |
|
|
{ |
|
|
$.ajax({ |
|
|
$.ajax({ |
|
|
url: config.API_URL+"/scan/code/"+code, |
|
|
url: config.API_URL+"/scan/code/"+encodeURIComponent(param), |
|
|
type: "GET", |
|
|
type: "GET", |
|
|
dataType: "json", |
|
|
dataType: "json", |
|
|
success: function(res) { |
|
|
success: function(res) { |
|
|
console.log(res.code); |
|
|
|
|
|
if(res.code == 200) |
|
|
if(res.code == 200) |
|
|
{ |
|
|
{ |
|
|
$("#patch").show() |
|
|
$("#patch").show() |
|
|