Merge branch 'master' into release/5.2
Showing
5 changed files
with
22 additions
and
5 deletions
@@ -47,6 +47,11 @@ passport.use(new LocalStrategy({ | @@ -47,6 +47,11 @@ passport.use(new LocalStrategy({ | ||
47 | // 国际号码验证取消 | 47 | // 国际号码验证取消 |
48 | let verifyMobile = area === '86' ? helpers.verifyAreaMobile(area + '-' + username) : true; | 48 | let verifyMobile = area === '86' ? helpers.verifyAreaMobile(area + '-' + username) : true; |
49 | 49 | ||
50 | + // 999 号段为有货专用测试号段 | ||
51 | + if (username.indexOf('999') === 0) { | ||
52 | + verifyMobile = true; | ||
53 | + } | ||
54 | + | ||
50 | if (!verifyEmail && !verifyMobile) { | 55 | if (!verifyEmail && !verifyMobile) { |
51 | logger.info(`【Passport Login】bad account, email:${verifyEmail} mobile:${verifyMobile}`); | 56 | logger.info(`【Passport Login】bad account, email:${verifyEmail} mobile:${verifyMobile}`); |
52 | return done('登录账号格式错误', null); | 57 | return done('登录账号格式错误', null); |
@@ -1849,6 +1849,9 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | @@ -1849,6 +1849,9 @@ let _detailDataPkgAsync = (origin, uid, vipLevel, ua) => { | ||
1849 | } | 1849 | } |
1850 | dest.id = origin.product_id; | 1850 | dest.id = origin.product_id; |
1851 | dest.goodsId = origin.goods_id; | 1851 | dest.goodsId = origin.goods_id; |
1852 | + if (dest.isSecKill === 'Y' && dest.cartInfo.totalNum > 0) { | ||
1853 | + dest.totalNum = 1; | ||
1854 | + } | ||
1852 | return Promise.resolve(dest); | 1855 | return Promise.resolve(dest); |
1853 | } | 1856 | } |
1854 | 1857 |
@@ -1916,10 +1916,19 @@ const getSeckillData = (param) => { | @@ -1916,10 +1916,19 @@ const getSeckillData = (param) => { | ||
1916 | 1916 | ||
1917 | if (result.data) { | 1917 | if (result.data) { |
1918 | data = result.data; | 1918 | data = result.data; |
1919 | + if (data.storageSum > 0) { | ||
1920 | + data.storageSum = 1; | ||
1921 | + } | ||
1922 | + if (data.secKillSku) { | ||
1923 | + _.forEach(data.secKillSku, item => { | ||
1924 | + if (item.storageNum > 0) { | ||
1925 | + item.storageNum = 1; | ||
1926 | + } | ||
1927 | + }); | ||
1928 | + } | ||
1919 | } else { | 1929 | } else { |
1920 | data.status = 0; | 1930 | data.status = 0; |
1921 | } | 1931 | } |
1922 | - | ||
1923 | return data; | 1932 | return data; |
1924 | }); | 1933 | }); |
1925 | }; | 1934 | }; |
@@ -64,7 +64,7 @@ module.exports = { | @@ -64,7 +64,7 @@ module.exports = { | ||
64 | udp: { // send by udp | 64 | udp: { // send by udp |
65 | measurement: 'yohobuy_wap_node_log', | 65 | measurement: 'yohobuy_wap_node_log', |
66 | level: 'debug', // logger level | 66 | level: 'debug', // logger level |
67 | - host: 'influxdblog.yohoops.org', // influxdb host | 67 | + host: 'influxdblog.web.yohoops.org', // influxdb host |
68 | port: '4444' // influxdb port | 68 | port: '4444' // influxdb port |
69 | }, | 69 | }, |
70 | console: { | 70 | console: { |
@@ -105,7 +105,7 @@ if (isProduction) { | @@ -105,7 +105,7 @@ if (isProduction) { | ||
105 | open: false, | 105 | open: false, |
106 | url: 'http://123.206.2.55/strategy' | 106 | url: 'http://123.206.2.55/strategy' |
107 | }, | 107 | }, |
108 | - zookeeperServer: '10.66.1.97:2181' | 108 | + zookeeperServer: 'zookeeper.web.yohoops.org:2181' |
109 | }); | 109 | }); |
110 | } else if (isTest) { | 110 | } else if (isTest) { |
111 | Object.assign(module.exports, { | 111 | Object.assign(module.exports, { |
@@ -39,8 +39,8 @@ | @@ -39,8 +39,8 @@ | ||
39 | "request-promise": "^3.0.0", | 39 | "request-promise": "^3.0.0", |
40 | "serve-favicon": "^2.3.0", | 40 | "serve-favicon": "^2.3.0", |
41 | "uuid": "^2.0.3", | 41 | "uuid": "^2.0.3", |
42 | - "yoho-node-lib": "0.1.29", | ||
43 | - "yoho-zookeeper": "^1.0.3" | 42 | + "yoho-node-lib": "0.1.30", |
43 | + "yoho-zookeeper": "^1.0.4" | ||
44 | }, | 44 | }, |
45 | "devDependencies": { | 45 | "devDependencies": { |
46 | "autoprefixer": "^6.3.7", | 46 | "autoprefixer": "^6.3.7", |
-
Please register or login to post a comment