Authored by 周少峰

shop url

... ... @@ -83,7 +83,7 @@ exports.new = (req, res, next) => {
* @return {[type]} [description]
*/
exports.brand = (req, res, next) => {
let brandDomain = req.params.brandDomain;
let brandDomain = req.query.domain;
let shopId = req.query.shopId;
let resData = {};
... ...
... ... @@ -48,9 +48,9 @@ module.exports = () => {
break;
default: // 其它(识别为品牌)
if (!req.path || req.path === '/') {
req.url = `/product/brand/${req.subdomains[0]}`;
req.url = `/product/brand?domain=${req.subdomains[0]}`;
} else if (req.path === '/about') {
req.url = `/product/about/${req.subdomains[0]}`;
req.url = `/product/about?domain=${req.subdomains[0]}`;
}
break;
}
... ...