资金:修改军团资金上限
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user