Authored by htoooth

add change

... ... @@ -396,7 +396,6 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
result.dis = true;
} else {
result.openSoon = true;
result.hadLimitedCode = false;
}
result.getLimitedCode = true;
break;
... ... @@ -404,14 +403,12 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
result.buyNow = true;
result.dis = true;
result.limitedCodeSoldOut = true;
result.hadLimitedCode = false;
break;
case 3: // 开售后,商品已经售罄
result.soldOut = true;
break;
case 4:// 开售后,立即购买(用户已领取限购码)
result.buyNow = true;
result.dis = false;
result.hadLimitedCode = true;
if (uid) { // 限购码失效
result.getLimitedCodeDis = true;
... ... @@ -419,7 +416,6 @@ const _getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
break;
case 5: // 开售前,限购码已被抢光(用户未领取限购码)
result.openSoon = true;
result.hadLimitedCode = true;
result.limitedCodeSoldOut = true;
break;
case 6: // 开售前,即将开售(用户已领取限购码)
... ...
... ... @@ -18,11 +18,11 @@ module.exports = {
domains: {
favApi: 'http://192.168.102.31:8092/brower',
//api: 'http://api-test1.yohops.com:9999/',
//service: 'http://service-test1.yohops.com:9999/',
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
//api: 'http://api.yoho.cn/',
//service: 'http://service.yoho.cn/',
search: 'http://192.168.102.216:8080/yohosearch/'
},
subDomains: {
... ...
... ... @@ -28,6 +28,8 @@ module.exports = () => {
req.user.isStudent = req.cookies.isStudent || 0;
}
req.user.uid = 20001048;
// 记住我
// if (_.isEmpty(req.user) && req.cookies.isRemember === 'true' && req.cookies.remem) {
// return cache.get(req.cookies.remem).then((result) => {
... ...