Authored by shuaiguo

Merge branch 'feature/comment-list' into 'master'

Feature/comment list

有赚邀新增加inviteNew上报参数

See merge request !1783
... ... @@ -276,3 +276,12 @@ exports.tplPraiseToggle = function(req, res, next) {
exports.getServerTimes = function(req, res) {
res.jsonp(Math.round(new Date() / 1000));
};
exports.registerInviteNew = function(req, res) {
const source = req.query.source || '';
if (source) {
res.cookie('INVITE_SOURCE_YAS', source);
}
return res.jsonp({code: 200});
};
... ...
... ... @@ -293,7 +293,7 @@ router.get('/feature/goods/detail', feature.goodsDetail); // 获取商品详情
router.get('/feature/floors/praise', feature.tplPraiseInfo); // 楼层点赞信息
router.get('/feature/floors/togglepraise', feature.tplPraiseToggle); // 楼层点赞/取消
router.get('/feature/getServerTimes', feature.getServerTimes); // 获取服务段时间
router.get('/feature/invite/register/sign', feature.registerInviteNew); // 有赚邀新上报参数
// 2016 年度账单
router.get('/annual-account', annualAccount.index);
router.get('/annual-account/share', annualAccount.share);
... ...
{
"name": "yohobuywap-node",
"version": "6.9.10-2",
"version": "6.9.11-2",
"private": true,
"description": "A New Yohobuy Project With Express",
"repository": {
... ...
... ... @@ -198,13 +198,24 @@ class RegisterNew {
// 统计代码:用于统计从哪个渠道注册成功的
if (window._yas && window._yas.sendCustomInfo) {
let {union_type, source} = window.queryString;
let param = {
C_ID: window._ChannelVary[window.cookie('_Channel')] || 1,
UNION_TYPE: union_type || window.cookie('unionTypeYas') || false
};
source = source || window.cookie('INVITE_SOURCE_YAS');
param = Object.assign(param, source ? {source} : {});
console.log(
'----------report params-----------',
JSON.stringify(param),
);
window._yas.sendCustomInfo({
op: 'YB_REGISTER_SUCCESS_L',
ud: window.getUid(),
param: JSON.stringify({
C_ID: window._ChannelVary[window.cookie('_Channel')] || 1,
UNION_TYPE: window.queryString.union_type || window.cookie('unionTypeYas') || false
})
param: JSON.stringify(param)
}, true);
}
... ...