Showing
6 changed files
with
8 additions
and
6 deletions
@@ -59,6 +59,7 @@ exports.getCoupon = (req, res, next) => { | @@ -59,6 +59,7 @@ exports.getCoupon = (req, res, next) => { | ||
59 | // 获取信息成功 | 59 | // 获取信息成功 |
60 | couponData.ordercode = ordercode; | 60 | couponData.ordercode = ordercode; |
61 | } | 61 | } |
62 | + | ||
62 | // console.log(couponData); | 63 | // console.log(couponData); |
63 | res.json({ | 64 | res.json({ |
64 | result: couponData | 65 | result: couponData |
@@ -92,9 +93,10 @@ exports.verify = (req, res, next) => { | @@ -92,9 +93,10 @@ exports.verify = (req, res, next) => { | ||
92 | // 获取信息成功 | 93 | // 获取信息成功 |
93 | couponData.ordercode = ordercode; | 94 | couponData.ordercode = ordercode; |
94 | } | 95 | } |
96 | + | ||
95 | // console.log(couponData); | 97 | // console.log(couponData); |
96 | res.json({ | 98 | res.json({ |
97 | result: couponData | 99 | result: couponData |
98 | }); | 100 | }); |
99 | }).catch(next); | 101 | }).catch(next); |
100 | -}; | ||
102 | +}; |
@@ -117,4 +117,4 @@ exports.registerAndSendCoupon = (data) => { | @@ -117,4 +117,4 @@ exports.registerAndSendCoupon = (data) => { | ||
117 | return api.get('', verifyData).then(result => { | 117 | return api.get('', verifyData).then(result => { |
118 | return getUserStatus(result); | 118 | return getUserStatus(result); |
119 | }); // 所有数据返回一个 Promise,方便 Promise.all 调用 | 119 | }); // 所有数据返回一个 Promise,方便 Promise.all 调用 |
120 | -}; | ||
120 | +}; |
@@ -155,7 +155,7 @@ var page = { | @@ -155,7 +155,7 @@ var page = { | ||
155 | // 埋点 | 155 | // 埋点 |
156 | tracking: function() { | 156 | tracking: function() { |
157 | var C_ID = this.getChannel(), | 157 | var C_ID = this.getChannel(), |
158 | - UDID = window.queryString.udid || window.queryString.anbiudid || '', | 158 | + UDID = window.queryString.anbiudid || window.queryString.udid || '', |
159 | SID = window.queryString.session_id || ''; | 159 | SID = window.queryString.session_id || ''; |
160 | 160 | ||
161 | // 刚进页面埋点 | 161 | // 刚进页面埋点 |
@@ -22,7 +22,7 @@ var getChannel = function() { | @@ -22,7 +22,7 @@ var getChannel = function() { | ||
22 | // 抽奖埋点 | 22 | // 抽奖埋点 |
23 | var tracking = function() { | 23 | var tracking = function() { |
24 | var C_ID = getChannel(), | 24 | var C_ID = getChannel(), |
25 | - UDID = window.queryString.udid || window.queryString.anbiudid || '', | 25 | + UDID = window.queryString.anbiudid || window.queryString.udid || '', |
26 | SID = window.queryString.session_id || ''; | 26 | SID = window.queryString.session_id || ''; |
27 | 27 | ||
28 | setTimeout(function() { | 28 | setTimeout(function() { |
@@ -301,7 +301,7 @@ $(function() { | @@ -301,7 +301,7 @@ $(function() { | ||
301 | 301 | ||
302 | if (isApp) { | 302 | if (isApp) { |
303 | speckParamApp = { | 303 | speckParamApp = { |
304 | - udid: window.queryString.udid || window.queryString.anbiudid || '', | 304 | + udid: window.queryString.anbiudid || window.queryString.udid || '', |
305 | apt: window.queryString.client_type || '', | 305 | apt: window.queryString.client_type || '', |
306 | sid: window.queryString.session_id || '', | 306 | sid: window.queryString.session_id || '', |
307 | }; | 307 | }; |
@@ -16,7 +16,7 @@ search.start(); | @@ -16,7 +16,7 @@ search.start(); | ||
16 | 16 | ||
17 | $('.goods-container').on('click', '.good-info', function() { | 17 | $('.goods-container').on('click', '.good-info', function() { |
18 | var C_ID = getChannel(), | 18 | var C_ID = getChannel(), |
19 | - UDID = window.queryString.udid || window.queryString.anbiudid || '', | 19 | + UDID = window.queryString.anbiudid || window.queryString.udid || '', |
20 | SID = window.queryString.session_id || '', | 20 | SID = window.queryString.session_id || '', |
21 | skn = $(this).attr('data-id'); | 21 | skn = $(this).attr('data-id'); |
22 | 22 |
-
Please register or login to post a comment