Browse Source

最新修改

master
DESKTOP-00SUCB6\Administrator 4 years ago
parent
commit
52b00d24c1
  1. 5
      public/config.js
  2. 7
      public/m.html

5
public/config.js

@ -6,8 +6,7 @@
// } // }
config = { config = {
// API_URL: 'http://172.119.50.248:8081', // API_URL: 'http://172.119.50.248:8081',
// API_URL: 'http://121.36.65.171:9999', // API_URL: 'http://61.135.192.50:8081',
API_URL: 'http://10.10.9.71:8081', API_URL: 'http://fw.niulanshan.com.cn:8081',
} }

7
public/m.html

@ -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()

Loading…
Cancel
Save