...
|
...
|
@@ -5,10 +5,18 @@ |
|
|
|
|
|
'use strict';
|
|
|
|
|
|
const service = require('../models/ads-service');
|
|
|
const config = global.yoho.config;
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
const jump = (req, res, next) => {
|
|
|
service.jump().catch(next);
|
|
|
const jump = (req, res) => {
|
|
|
let _QYH_UNION = req.query._QYH_UNION || '';
|
|
|
let target = req.query.target || '';
|
|
|
|
|
|
res.cookie('_QYH_UNION', _QYH_UNION, {
|
|
|
domain: config.cookieDomain
|
|
|
});
|
|
|
|
|
|
res.redirect(target || helpers.urlFormat(''));
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
...
|
...
|
|