From beb0e0d5c1adc3ef1107b0ac35c2c477cea0004a Mon Sep 17 00:00:00 2001 From: Hai Liang Wang Date: Fri, 14 Sep 2018 11:11:14 +0800 Subject: [PATCH] #79 fix http protocol --- .../src/main/resources/templates/apps/im/point.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 ;