Authored by 陈峰

解决guangurl重写bug

... ... @@ -7,10 +7,10 @@
module.exports = () => {
return (req, res, next) => {
console.log(req.subdomains)
if (req.subdomains.length) {
switch (req.subdomains[0]) {
case 'guang': // 逛
req.url = req.url.replace('/guang', '');
req.url = `/guang${req.url}`;
break;
default: // 其它(识别为品牌)
... ...