diff --git a/contact-center/app/src/main/resources/templates/apps/im/point.html b/contact-center/app/src/main/resources/templates/apps/im/point.html index 0af88ee1..b5217936 100644 --- a/contact-center/app/src/main/resources/templates/apps/im/point.html +++ b/contact-center/app/src/main/resources/templates/apps/im/point.html @@ -69,13 +69,14 @@ function append(parent, text) { parent.appendChild(text); } } +var protocol = window.location.protocol.replace(/:/g,''); var ukefu = { time : new Date().getTime(), - in :"${schema!'http'}://${hostname!''}<#if port?? && port != 80>:${port!''}/im/${appid!''}/userlist.html?appid=${appid!''}<#if aiid??>&aiid=${aiid}&orgi=${orgi!''}&client=${client}" , - url :"${schema!'http'}://${hostname!''}<#if port?? && port != 80>:${port!''}/im/online?appid=${appid!''}&orgi=${orgi!''}<#if aiid??>&aiid=${aiid}&client=${client}" , - chat : "${schema!'http'}://${hostname!''}<#if port?? && port != 80>:${port!''}/im/index.html?appid=${appid!''}<#if aiid??>&aiid=${aiid}&orgi=${orgi!''}&client=${client}" , - refuse :"${schema!'http'}://${hostname!''}<#if port?? && port != 80>:${port!''}/im/refuse.html?appid=${appid!''}<#if aiid??>&aiid=${aiid}&orgi=${orgi!''}&client=${client}", - config : function(d){ + in: protocol + "://${hostname!''}<#if port?? && port != 80>:${port!''}/im/${appid!''}/userlist.html?appid=${appid!''}<#if aiid??>&aiid=${aiid}&orgi=${orgi!''}&client=${client}" , + url: protocol + "://${hostname!''}<#if port?? && port != 80>:${port!''}/im/online?appid=${appid!''}&orgi=${orgi!''}<#if aiid??>&aiid=${aiid}&client=${client}" , + chat: protocol + "://${hostname!''}<#if port?? && port != 80>:${port!''}/im/index.html?appid=${appid!''}<#if aiid??>&aiid=${aiid}&orgi=${orgi!''}&client=${client}" , + refuse: protocol + "://${hostname!''}<#if port?? && port != 80>:${port!''}/im/refuse.html?appid=${appid!''}<#if aiid??>&aiid=${aiid}&orgi=${orgi!''}&client=${client}", + config: function(d){ data = d ; if(d.id != null && d.id != ''){ result = d.id ;