feat(斋月活动): 调整前十的奖励金币计算方式

This commit is contained in:
hzj 2026-02-12 14:16:03 +08:00
parent cc789841db
commit 553817f0e2

View File

@ -2044,11 +2044,11 @@ const formatLargeNumber = (num) => {
if (absNum >= 1000000) { if (absNum >= 1000000) {
const millionValue = num / 1000000 const millionValue = num / 1000000
const roundedValue = Math.round(millionValue * 100) / 100 const roundedValue = Math.floor(millionValue * 100) / 100 //
return roundedValue.toFixed(2) + 'M' return roundedValue.toFixed(2) + 'M'
} else if (absNum >= 1000) { } else if (absNum >= 1000) {
const thousandValue = num / 1000 const thousandValue = num / 1000
const roundedValue = Math.round(thousandValue * 100) / 100 const roundedValue = Math.floor(thousandValue * 100) / 100 //
return roundedValue.toFixed(2) + 'K' return roundedValue.toFixed(2) + 'K'
} else { } else {
return Math.floor(num).toString() return Math.floor(num).toString()
@ -2685,6 +2685,7 @@ const getDrawRecords = async () => {
// //
const receiveTaskReward = async (code) => { const receiveTaskReward = async (code) => {
let data = { let data = {
activityId: '2006671533988298666',
taskCode: code, taskCode: code,
} }
try { try {