Commit 5585ec00 authored by zhaofei's avatar zhaofei

s

parent c7d75c5d
...@@ -420,15 +420,12 @@ export default class ActivityConfigService { ...@@ -420,15 +420,12 @@ export default class ActivityConfigService {
// 取出奖池 // 取出奖池
let prizeData = {} let prizeData = {}
poolConfig.forEach(item => { poolConfig.forEach(item => {
if (item?.sort == 'prizePool') {
prizeData[item.key] = prizeList.filter(prize => { prizeData[item.key] = prizeList.filter(prize => {
return +item.prizeDataType == +prize.prizeDataType return +item.prizeDataType == +prize.prizeDataType
}) })
}
}); });
// 过滤奖池条件 // 过滤奖池条件
poolConfig.forEach(item => { poolConfig.forEach(item => {
if (item?.sort == 'prizePool') {
if (item.conditionKeys?.length) { if (item.conditionKeys?.length) {
item.conditionKeys.forEach(condition => { item.conditionKeys.forEach(condition => {
prizeData[item.key] = prizeData[item.key].filter(prize => { prizeData[item.key] = prizeData[item.key].filter(prize => {
...@@ -436,7 +433,6 @@ export default class ActivityConfigService { ...@@ -436,7 +433,6 @@ export default class ActivityConfigService {
}) })
}) })
} }
}
}) })
return prizeData return prizeData
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment