🐞 fix(拍卖行): 推送去重
This commit is contained in:
@@ -496,7 +496,7 @@ export async function pushAuctionOver(lot: LotType) {
|
|||||||
export async function pushAuctionUpdate(lots: LotType[], dividends: DividendType[]) {
|
export async function pushAuctionUpdate(lots: LotType[], dividends: DividendType[]) {
|
||||||
let serverIds: number[] = [];
|
let serverIds: number[] = [];
|
||||||
for(let lot of lots) {
|
for(let lot of lots) {
|
||||||
serverIds.push(lot.serverId);
|
if(serverIds.indexOf(lot.serverId) == -1) serverIds.push(lot.serverId);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let serverId of serverIds) {
|
for(let serverId of serverIds) {
|
||||||
|
|||||||
Reference in New Issue
Block a user