...
|
...
|
@@ -13,7 +13,7 @@ const clientService = require('../models/client-service'); |
|
|
/**
|
|
|
* 在线客服客户端
|
|
|
*/
|
|
|
const index = (req, res) => {
|
|
|
const index = (req, res, next) => {
|
|
|
let reg = /MSIE\s?[987]\.0/i;
|
|
|
let userAgent = req.headers['user-agent'];
|
|
|
let unSupport = reg.test(userAgent);
|
...
|
...
|
@@ -33,7 +33,8 @@ const index = (req, res) => { |
|
|
clientService.getClientData(type, encryptedUid, imgSize)
|
|
|
.then(result => {
|
|
|
res.render('client', Object.assign(data, result));
|
|
|
});
|
|
|
})
|
|
|
.catch(next);
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|