|
@@ -29,12 +29,12 @@
|
|
|
function getuuid() {
|
|
|
console.log("获取uuid...")
|
|
|
$.ajax({
|
|
|
- url: "http://192.168.0.65:18090/api/xms/qrscan/uuid",
|
|
|
+ url: "http://192.168.0.68:18090/api/xms/qrscan/uuid",
|
|
|
dataType: "json",
|
|
|
async: false,
|
|
|
success: function (data) {
|
|
|
- new QRCode(document.getElementById("qrcode"), "http://192.168.0.65:18090/client.html?id=" + data.uuid);
|
|
|
- let wsUrl = "ws://192.168.0.65:18090/qrscan/auth?id=" + data.uuid
|
|
|
+ new QRCode(document.getElementById("qrcode"), "http://192.168.0.68:18090/client.html?id=" + data.uuid);
|
|
|
+ let wsUrl = "ws://192.168.0.68:18090/qrscan/auth?id=" + data.uuid
|
|
|
let ws = new WebSocket(wsUrl)
|
|
|
ws.onopen = function (evt) {
|
|
|
console.log("WebSocket Connection open ...");
|
|
@@ -65,7 +65,7 @@
|
|
|
}
|
|
|
console.log("data:" + JSON.stringify(authForm))
|
|
|
$.ajax({
|
|
|
- url: "http://127.0.0.1:18090/api/xms/qrscan/auth",
|
|
|
+ url: "http://192.168.0.68:18090/api/xms/qrscan/auth",
|
|
|
method: "post",
|
|
|
contentType: "application/json",
|
|
|
data: JSON.stringify(authForm),
|
|
@@ -74,6 +74,7 @@
|
|
|
success: function (data) {
|
|
|
console.log("认证结果:")
|
|
|
console.log(JSON.stringify(data))
|
|
|
+ alert("登录成功,正在跳转登录界面...")
|
|
|
// console.log(data)
|
|
|
}
|
|
|
})
|