Commit 267d37ea authored by maggie's avatar maggie

修复排行榜开奖

parent 5cadbb50
...@@ -349,7 +349,7 @@ export default class AwardsService extends UserService { ...@@ -349,7 +349,7 @@ export default class AwardsService extends UserService {
const { rank, _id: prizeId, type, name, image, credits } = prizeConfig const { rank, _id: prizeId, type, name, 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 + 1; i++) { for (let i = +min - 1; i < +max; i++) {
if (userList[i]) { if (userList[i]) {
const { openId, userNick } = userList[i] const { openId, userNick } = userList[i]
prizeList.push({ prizeList.push({
......
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