Commit 4f67af43 authored by maggie's avatar maggie

排行榜开奖加入ename

parent 76921e2d
...@@ -346,7 +346,7 @@ export default class AwardsService extends UserService { ...@@ -346,7 +346,7 @@ export default class AwardsService extends UserService {
) )
const prizeList = [] const prizeList = []
prizeConfigList.forEach(prizeConfig => { prizeConfigList.forEach(prizeConfig => {
const { rank, _id: prizeId, type, name, image, credits } = prizeConfig const { rank, _id: prizeId, type, name, ename, image, credits } = prizeConfig
let [min, max] = rank.split('-') let [min, max] = rank.split('-')
if (!max) max = min if (!max) max = min
for (let i = +min - 1; i < +max; i++) { for (let i = +min - 1; i < +max; i++) {
...@@ -360,6 +360,7 @@ export default class AwardsService extends UserService { ...@@ -360,6 +360,7 @@ export default class AwardsService extends UserService {
prizeDataType, prizeDataType,
remark: '', remark: '',
credits: +credits, credits: +credits,
ename,
type, type,
name, name,
image, image,
......
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