Merge branch 'feature/3party' into feature/shop
Showing
4 changed files
with
28 additions
and
23 deletions
@@ -70,23 +70,26 @@ exports.orderEnsure = (req, res, next) => { | @@ -70,23 +70,26 @@ exports.orderEnsure = (req, res, next) => { | ||
70 | addressModel.addressData(uid) | 70 | addressModel.addressData(uid) |
71 | ]; | 71 | ]; |
72 | 72 | ||
73 | - if (_.isUndefined(req.cookies._isNewUser)) { | ||
74 | - allPromise.push(orderModel.isNewUser(uid)); | ||
75 | - } | 73 | + /* tar note 170426 品众去除 */ |
74 | + // if (_.isUndefined(req.cookies._isNewUser)) { | ||
75 | + // allPromise.push(orderModel.isNewUser(uid)); | ||
76 | + // } | ||
76 | 77 | ||
77 | return Promise.all(allPromise).then(result => { | 78 | return Promise.all(allPromise).then(result => { |
78 | let order = result[0]; | 79 | let order = result[0]; |
79 | let userProfile = result[1]; | 80 | let userProfile = result[1]; |
80 | let address = result[2]; | 81 | let address = result[2]; |
81 | - let isNewUser = result[3]; | ||
82 | 82 | ||
83 | - if (!_.isUndefined(isNewUser)) { | ||
84 | - if (isNewUser) { | ||
85 | - res.cookie('_isNewUser', true, actCkOpthn); | ||
86 | - } else { | ||
87 | - res.cookie('_isNewUser', false, actCkOpthn); | ||
88 | - } | ||
89 | - } | 83 | + /* tar note 170426 品众去除 */ |
84 | + // let isNewUser = result[3]; | ||
85 | + | ||
86 | + // if (!_.isUndefined(isNewUser)) { | ||
87 | + // if (isNewUser) { | ||
88 | + // res.cookie('_isNewUser', true, actCkOpthn); | ||
89 | + // } else { | ||
90 | + // res.cookie('_isNewUser', false, actCkOpthn); | ||
91 | + // } | ||
92 | + // } | ||
90 | 93 | ||
91 | if (order.cartUrl) { | 94 | if (order.cartUrl) { |
92 | logger.info(`orderEnsure: order cartUrl has value:${order.cartUrl}, order data is null`); | 95 | logger.info(`orderEnsure: order cartUrl has value:${order.cartUrl}, order data is null`); |
@@ -75,8 +75,8 @@ | @@ -75,8 +75,8 @@ | ||
75 | }, 1000); | 75 | }, 1000); |
76 | }()); | 76 | }()); |
77 | 77 | ||
78 | - /* tar add 190222 */ | ||
79 | - window._fxcmd = window._fxcmd || []; | 78 | + /* tar add 170426 品众代码去除 */ |
79 | + {{!--window._fxcmd = window._fxcmd || []; | ||
80 | _fxcmd.sid = 'bb3b16fa1106a6ab8619da0095755f32'; | 80 | _fxcmd.sid = 'bb3b16fa1106a6ab8619da0095755f32'; |
81 | _fxcmd.trackAll = false; | 81 | _fxcmd.trackAll = false; |
82 | // 参数配置(可选)... | 82 | // 参数配置(可选)... |
@@ -89,7 +89,7 @@ | @@ -89,7 +89,7 @@ | ||
89 | _pzfx.src = '//static.w3t.cn/fx/1/1/fx.js'; | 89 | _pzfx.src = '//static.w3t.cn/fx/1/1/fx.js'; |
90 | var sc = document.getElementsByTagName('script')[0]; | 90 | var sc = document.getElementsByTagName('script')[0]; |
91 | sc.parentNode.insertBefore(_pzfx,sc); | 91 | sc.parentNode.insertBefore(_pzfx,sc); |
92 | - }, 1000); | 92 | + }, 1000);--}} |
93 | 93 | ||
94 | 94 | ||
95 | </script> | 95 | </script> |
@@ -323,15 +323,15 @@ function submitOrder() { | @@ -323,15 +323,15 @@ function submitOrder() { | ||
323 | }, true); | 323 | }, true); |
324 | } | 324 | } |
325 | 325 | ||
326 | - /* tar add 190222 */ | ||
327 | - if (window._fxcmd) { | ||
328 | - window._fxcmd.push(['trackOrder', { | ||
329 | - oid: res.data.order_code, | ||
330 | - otp: res.data.order_amount, | ||
331 | - u_info: cookie.get('_UID'), | ||
332 | - u_type: cookie.get('_isNewUser') ? 1 : 0 | ||
333 | - }, []]); | ||
334 | - } | 326 | + /* tar add 170426 品众代码去除 */ |
327 | + // if (window._fxcmd) { | ||
328 | + // window._fxcmd.push(['trackOrder', { | ||
329 | + // oid: res.data.order_code, | ||
330 | + // otp: res.data.order_amount, | ||
331 | + // u_info: cookie.get('_UID'), | ||
332 | + // u_type: cookie.get('_isNewUser') ? 1 : 0 | ||
333 | + // }, []]); | ||
334 | + // } | ||
335 | 335 | ||
336 | cookie.remove(['order-info', 'activity-info']); | 336 | cookie.remove(['order-info', 'activity-info']); |
337 | window.location.href = url; | 337 | window.location.href = url; |
-
Please register or login to post a comment