Authored by htoooth

fix

... ... @@ -8,6 +8,7 @@
const requestIp = require('request-ip');
const md5 = require('md5');
const config = global.yoho.config;
const _getGender = (channel) => {
switch (channel) {
... ... @@ -68,7 +69,9 @@ module.exports = () => {
udid = md5(req.ip || requestIp.getClientIp(req));
if (res && res.cookie) {
res.cookie('udid', udid);
res.cookie('udid', udid, {
domain: config.cookieDomain
});
}
}
... ...