Authored by 郭成尧

get-shop_id-no-domain

... ... @@ -61,9 +61,8 @@ const shop = {
*/
resolveParams(req, res, next) {
let pathParams = _.last(_.split(req.url.replace('.html', ''), '/'));
let shopId = _.last(_.split(pathParams, '-'));
req.query.domain = pathParams.replace(`-${shopId}`, '');
req.query.shop_id = _.last(_.split(pathParams, '-'));
shop.entry(req, res, next);
},
... ...