Authored by yyq

fix

... ... @@ -202,7 +202,9 @@ module.exports = class extends global.yoho.BaseModel {
actPrizeId
}, {
cache: noCache ? 0 : MINUTE_TIMES / 6
}).then(handelResult);
}).then(result => {
return handelResult({join_num: _.get(result, '[0].join_num')});
});
}
/**
... ... @@ -228,7 +230,7 @@ module.exports = class extends global.yoho.BaseModel {
message: '活动已结束或已达人数上限'
};
let status = getActivityStatus(_.get(info, '[0][0]'), _.get(info, '[1][0].join_num', 0));
let status = getActivityStatus(_.get(info, '[0][0]'), _.get(info, '[1].join_num', 0));
if (status.isEnd) {
return errorData;
... ...