From e438abdba1744b2e4b16e95ac11a5924a855a9c4 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 23 Nov 2021 15:33:20 +0800 Subject: [PATCH] 1 --- views/home/index.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/home/index.tpl b/views/home/index.tpl index 45915cd..7e6f178 100644 --- a/views/home/index.tpl +++ b/views/home/index.tpl @@ -359,7 +359,7 @@ // 连接webSocket - ws = new WebSocket("wss://{{ .webSocketUrl }}/acc"); + ws = new WebSocket("{{ .webSocketUrl }}/acc"); ws.onopen = function(evt) { console.log("Connection open ..."); @@ -432,7 +432,7 @@ $.ajax({ type: "POST", - url: 'http://{{ .httpUrl }}/user/sendMessageAll', + url: '{{ .httpUrl }}/user/sendMessageAll', data: { appId: appId, userId: person, @@ -454,7 +454,7 @@ function getUserList() { $.ajax({ type: "GET", - url: "http://{{ .httpUrl }}/user/list?appId=" + appId, + url: "{{ .httpUrl }}/user/list?appId=" + appId, dataType: "json", success: function(data) { console.log("user list:" + data.code + "userList:" + data.data.userList);