✨ feat(37需求): 添加返利数据到活动列表
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user