资金:修改军团资金上限

This commit is contained in:
luying
2022-03-04 13:44:46 +08:00
parent 6d8916cbe8
commit defa0a3823
2 changed files with 4 additions and 13 deletions
+1 -1
View File
@@ -54,8 +54,8 @@ export async function addFund(code: string, serverId: number, fund: number) {
refTodayFund = new Date();
}
if(todayFund + fund > dicStructure.maxFund) {
todayFund = dicStructure.maxFund;
fund = dicStructure.maxFund - todayFund;
todayFund = dicStructure.maxFund;
} else {
todayFund += fund;
}