调整白单策略, 一个帐号可多次获取白单
This commit is contained in:
parent
8d19ebcaa2
commit
304640079e
@ -4,7 +4,7 @@
|
|||||||
"type": 1,
|
"type": 1,
|
||||||
"name": "WhiteList",
|
"name": "WhiteList",
|
||||||
"amount": 1,
|
"amount": 1,
|
||||||
"probability": 100
|
"probability": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"position": 2,
|
"position": 2,
|
||||||
@ -35,7 +35,7 @@
|
|||||||
"type": 2,
|
"type": 2,
|
||||||
"name": "NFT",
|
"name": "NFT",
|
||||||
"amount": 1,
|
"amount": 1,
|
||||||
"probability": 100
|
"probability": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"position": 7,
|
"position": 7,
|
||||||
|
@ -419,6 +419,38 @@
|
|||||||
"end": "2025-01-01 00:00",
|
"end": "2025-01-01 00:00",
|
||||||
"checkChain": false,
|
"checkChain": false,
|
||||||
"params": { "time": 6, "failRate": 0 }
|
"params": { "time": 6, "failRate": 0 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "g3f4f63mp73a6gsq5rr",
|
||||||
|
"task": "TwitterRetweet",
|
||||||
|
"title": "RT - Dragonscale Gameplay",
|
||||||
|
"type": 1,
|
||||||
|
"desc": "Retweet specific tweets",
|
||||||
|
"category": "Social Tasks",
|
||||||
|
"score": 50,
|
||||||
|
"autoclaim": false,
|
||||||
|
"pretasks": ["e2yhq2lj30vwcpedv7p"],
|
||||||
|
"cfg": { "icon": "twitter", "content": "1791452561419161827"},
|
||||||
|
"start": "2024-01-01 00:00",
|
||||||
|
"end": "2025-01-01 00:00",
|
||||||
|
"checkChain": false,
|
||||||
|
"params": { "time": 6, "failRate": 0 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "g3knsuk7c9g45npftvw",
|
||||||
|
"task": "TwitterLike",
|
||||||
|
"title": "Like - Dragonscale Gameplay",
|
||||||
|
"type": 1,
|
||||||
|
"desc": "Like specific tweets",
|
||||||
|
"category": "Social Tasks",
|
||||||
|
"score": 50,
|
||||||
|
"autoclaim": false,
|
||||||
|
"pretasks": ["e2yhq2lj30vwcpedv7p"],
|
||||||
|
"cfg": { "icon": "twitter", "content": "1791452561419161827"},
|
||||||
|
"start": "2024-01-01 00:00",
|
||||||
|
"end": "2025-01-01 00:00",
|
||||||
|
"checkChain": false,
|
||||||
|
"params": { "time": 6, "failRate": 0 }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"drawTime": 1715245160457,
|
"drawTime": 1715245160457,
|
||||||
|
@ -168,7 +168,7 @@ class AdminController extends BaseController {
|
|||||||
code: user.inviteCode,
|
code: user.inviteCode,
|
||||||
mapopen: gameRecord.status,
|
mapopen: gameRecord.status,
|
||||||
enhanceCount,
|
enhanceCount,
|
||||||
inWhiteList: user.inWhiteList ? 1 : 0,
|
inWhiteList: user.whiteListNum || 0,
|
||||||
googleId: user.googleId,
|
googleId: user.googleId,
|
||||||
googleMail: user.googleEmail,
|
googleMail: user.googleEmail,
|
||||||
gameScore: ingameStat.score,
|
gameScore: ingameStat.score,
|
||||||
|
@ -349,8 +349,7 @@ class BoxController extends BaseController {
|
|||||||
chest.items.push(item)
|
chest.items.push(item)
|
||||||
})
|
})
|
||||||
if (items.find(item => item.type === 1)) {
|
if (items.find(item => item.type === 1)) {
|
||||||
user.inWhiteList = true
|
await ActivityUser.updateOne({ _id: user.id }, { inWhiteList: true, $inc: { whiteListNum: 1 } })
|
||||||
await user.save()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await updateRankScore({
|
await updateRankScore({
|
||||||
|
@ -207,8 +207,7 @@ class InGameController extends BaseController {
|
|||||||
items.push(reward)
|
items.push(reward)
|
||||||
record.items = [reward]
|
record.items = [reward]
|
||||||
if (reward.type === 1) {
|
if (reward.type === 1) {
|
||||||
user.inWhiteList = true
|
await ActivityUser.updateOne({ _id: user.id }, { inWhiteList: true, $inc: { whiteListNum: 1 } })
|
||||||
await user.save()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await record.save()
|
await record.save()
|
||||||
|
@ -162,7 +162,7 @@ class SignController extends BaseController {
|
|||||||
code: user.inviteCode,
|
code: user.inviteCode,
|
||||||
mapopen: gameRecord.status,
|
mapopen: gameRecord.status,
|
||||||
enhanceCount,
|
enhanceCount,
|
||||||
inWhiteList: user.inWhiteList ? 1 : 0,
|
inWhiteList: user.whiteListNum || 0,
|
||||||
googleId: user.googleId,
|
googleId: user.googleId,
|
||||||
googleMail: user.googleEmail,
|
googleMail: user.googleEmail,
|
||||||
gameScore: ingameStat.score,
|
gameScore: ingameStat.score,
|
||||||
|
@ -128,6 +128,9 @@ export class ActivityUserClass extends BaseModule {
|
|||||||
@prop({ default: false })
|
@prop({ default: false })
|
||||||
public inWhiteList: boolean
|
public inWhiteList: boolean
|
||||||
|
|
||||||
|
@prop({ default: 0 })
|
||||||
|
public whiteListNum: number
|
||||||
|
|
||||||
@prop({ default: 1 })
|
@prop({ default: 1 })
|
||||||
public boost: number
|
public boost: number
|
||||||
/**
|
/**
|
||||||
|
@ -107,7 +107,7 @@ export const generateChestBonus = async (chest: DocumentType<ActivityChestClass>
|
|||||||
for (let i = 0; i < chestBonusItems.length; i++) {
|
for (let i = 0; i < chestBonusItems.length; i++) {
|
||||||
let item = chestBonusItems[i]
|
let item = chestBonusItems[i]
|
||||||
if (Math.random() < item.probability / 100) {
|
if (Math.random() < item.probability / 100) {
|
||||||
if (item.type === 1 && hasWhite) {
|
if (item.type === 1) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
bonusItem = item
|
bonusItem = item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user