/**
 * 手机访问检测
 */
'use strict';
module.exports = () => {
    return (req, res, next) => {
        if (req.isMobile) {
            return res.redirect(req.mobileUrl || `//m.yohobuy.com${req.url}`);
        }

        return next();
    };
};