diff --git a/initdatas/activity_info.json b/initdatas/activity_info.json index bf2959a..889eea0 100644 --- a/initdatas/activity_info.json +++ b/initdatas/activity_info.json @@ -387,6 +387,38 @@ "end": "2025-01-01 00:00", "checkChain": false, "params": { "time": 6, "failRate": 0 } + }, + { + "id": "g3mta63vxgym6hg7swt", + "task": "TwitterRetweet", + "title": "RT - Play-to-airdrop is live now!", + "type": 1, + "desc": "Retweet specific tweets", + "category": "Social Tasks", + "score": 50, + "autoclaim": false, + "pretasks": ["e2yhq2lj30vwcpedv7p"], + "cfg": { "icon": "twitter", "content": "1790369006349918285"}, + "start": "2024-01-01 00:00", + "end": "2025-01-01 00:00", + "checkChain": false, + "params": { "time": 6, "failRate": 0 } + }, + { + "id": "g3kk4egguh3hkyf8gb8", + "task": "TwitterLike", + "title": "Like - Play-to-airdrop is live now! ", + "type": 1, + "desc": "Like specific tweets", + "category": "Social Tasks", + "score": 50, + "autoclaim": false, + "pretasks": ["e2yhq2lj30vwcpedv7p"], + "cfg": { "icon": "twitter", "content": "1790369006349918285"}, + "start": "2024-01-01 00:00", + "end": "2025-01-01 00:00", + "checkChain": false, + "params": { "time": 6, "failRate": 0 } } ], "drawTime": 1715245160457, diff --git a/src/controllers/ingame.controller.ts b/src/controllers/ingame.controller.ts index 9badf77..68652d0 100644 --- a/src/controllers/ingame.controller.ts +++ b/src/controllers/ingame.controller.ts @@ -149,7 +149,14 @@ class InGameController extends BaseController { await new SyncLocker().checkLock(req) logger.db('draw_ingame', req) const user = req.user - const { step } = req.params + let { step } = req.params + if (isNaN(step)) { + throw new ZError(10, 'params mismatch') + } + step = parseInt(step || '1') + if (step < 1) { + step = 1 + } if (!user.gameAccountBinded()) { throw new ZError(10, 'need connect game account first') } diff --git a/src/services/email.svr.ts b/src/services/email.svr.ts index 96b7e32..d975f5e 100644 --- a/src/services/email.svr.ts +++ b/src/services/email.svr.ts @@ -34,7 +34,7 @@ export const DEFAULT_VERIFY_MAIL_HTML = `
Use it to login CEBG. Never share this code with anyone.
` -export const DEFAULT_LOGIN_MAIL_SUBJECT = 'Counter Fire email login code' +export const DEFAULT_LOGIN_MAIL_SUBJECT = 'Your Verification Code for Counter Fire' export const DEFAULT_LOGIN_MAIL_HTML = `