✨ feat(37需求): 添加返利数据到活动列表

This commit is contained in:
luying
2023-04-07 19:06:54 +08:00
parent f0a5809104
commit 2c5118dd5a
3 changed files with 8 additions and 1 deletions
@@ -65,6 +65,7 @@ export enum ACTIVITY_TYPE {
BIND_PHONE = 50, // 绑定手机号
WEEKLY_FUND = 51, // 周基金
MONTHLY_FUND = 52, // 月基金
REBATE = 53, // 返利
}
/**
+1 -1
View File
@@ -111,7 +111,7 @@ function multiRewards(rewards: string, multi: number) {
return arr.map(str => {
let [type, id, count] = str.split('&')||[];
if(type && id && count) {
let _count = Math.floor(parseInt(count) * multi);
let _count = Math.ceil(parseInt(count) * multi);
if(isNaN(_count)) return null;
return `${type}&${id}&${_count}`;
}