🐞 fix(拍卖行): 推送去重

This commit is contained in:
luying
2023-07-04 11:24:17 +08:00
parent 02de2f9695
commit 93b484566e

View File

@@ -496,7 +496,7 @@ export async function pushAuctionOver(lot: LotType) {
export async function pushAuctionUpdate(lots: LotType[], dividends: DividendType[]) {
let serverIds: number[] = [];
for(let lot of lots) {
serverIds.push(lot.serverId);
if(serverIds.indexOf(lot.serverId) == -1) serverIds.push(lot.serverId);
}
for(let serverId of serverIds) {