Showing
1 changed file
with
4 additions
and
2 deletions
@@ -202,7 +202,9 @@ module.exports = class extends global.yoho.BaseModel { | @@ -202,7 +202,9 @@ module.exports = class extends global.yoho.BaseModel { | ||
202 | actPrizeId | 202 | actPrizeId |
203 | }, { | 203 | }, { |
204 | cache: noCache ? 0 : MINUTE_TIMES / 6 | 204 | cache: noCache ? 0 : MINUTE_TIMES / 6 |
205 | - }).then(handelResult); | 205 | + }).then(result => { |
206 | + return handelResult({join_num: _.get(result, '[0].join_num')}); | ||
207 | + }); | ||
206 | } | 208 | } |
207 | 209 | ||
208 | /** | 210 | /** |
@@ -228,7 +230,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -228,7 +230,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
228 | message: '活动已结束或已达人数上限' | 230 | message: '活动已结束或已达人数上限' |
229 | }; | 231 | }; |
230 | 232 | ||
231 | - let status = getActivityStatus(_.get(info, '[0][0]'), _.get(info, '[1][0].join_num', 0)); | 233 | + let status = getActivityStatus(_.get(info, '[0][0]'), _.get(info, '[1].join_num', 0)); |
232 | 234 | ||
233 | if (status.isEnd) { | 235 | if (status.isEnd) { |
234 | return errorData; | 236 | return errorData; |
-
Please register or login to post a comment