From 6026541ab8d804cd989fc444ec69080fea75688b Mon Sep 17 00:00:00 2001 From: lecjy <565572696@qq.com> Date: Sat, 20 Apr 2024 00:26:37 +0800 Subject: [PATCH] Revert "fix #1006" --- .../app/src/main/resources/templates/apps/im/index.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact-center/app/src/main/resources/templates/apps/im/index.pug b/contact-center/app/src/main/resources/templates/apps/im/index.pug index 77d8cd5e..cc1919e5 100644 --- a/contact-center/app/src/main/resources/templates/apps/im/index.pug +++ b/contact-center/app/src/main/resources/templates/apps/im/index.pug @@ -545,7 +545,7 @@ html var hostname = location.hostname; var protocol = window.location.protocol.replace(/:/g, ''); var username = encodeURIComponent("#{username}"); - var socket = io(protocol + '://' + hostname + ':location.port/im/user?userid=#{userid}&session=#{sessionid}&appid=#{appid}&osname=!{osname}&browser=!{browser}!{skill ? "&skill=" + skill : ""}!{username ? "&nickname='+username+'" : ""}!{agent ? "&agent=" + agent : ""}!{title ? "&title=" + title : ""}!{traceid ? "&url=" + url : ""}!{traceid ? "&traceid=" + traceid : ""}!{isInvite ? "&isInvite=" + isInvite : ""}', {transports: ['websocket', 'polling']}); + var socket = io(protocol + '://' + hostname + ':#{port}/im/user?userid=#{userid}&session=#{sessionid}&appid=#{appid}&osname=!{osname}&browser=!{browser}!{skill ? "&skill=" + skill : ""}!{username ? "&nickname='+username+'" : ""}!{agent ? "&agent=" + agent : ""}!{title ? "&title=" + title : ""}!{traceid ? "&url=" + url : ""}!{traceid ? "&traceid=" + traceid : ""}!{isInvite ? "&isInvite=" + isInvite : ""}', {transports: ['websocket', 'polling']}); console.log('connect debug', protocol, hostname);