Authored by 郝肖肖

客服chat80.live800.com 域名开关配置

... ... @@ -9,8 +9,12 @@
const onlineModel = require('../models/onlineService');
const headerModel = require('../../../doraemon/models/header'); // 头部model
const _ = require('lodash');
const helpers = global.yoho.helpers;
const getOnlineServiceInfo = (req, res, next) => {
let serviceUrl = _.get(req.app.locals.wap, 'clientService.new', false) ?
helpers.urlFormat('/service/im') :
'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&info=';
onlineModel.getOnlineServiceInfo().then((result) => {
... ... @@ -25,7 +29,7 @@ const getOnlineServiceInfo = (req, res, next) => {
title: '在线客服',
pageFooter: true,
service: result,
serviceUrl: 'http://chat80.live800.com/live800/chatClient/chatbox.jsp?companyID=493979&configID=123576&jid=9277320930'
serviceUrl: serviceUrl
});
}).catch(next);
};
... ...