活动:新武将抽卡活动
This commit is contained in:
@@ -58,11 +58,11 @@ export class RefreshShopData extends ActivityBase {
|
||||
nextRefreshTime: number;//下次刷新时间
|
||||
roundIndex: number = 1;//周期数从1开始
|
||||
|
||||
public findItemByProductID(productID: string) {
|
||||
public findItemByProductID(productID: string): RefreshShopItem {
|
||||
for (let pageData of this.list) {
|
||||
let index = pageData.items.findIndex(obj => { return obj && obj.productID === productID });
|
||||
if (index != -1) {
|
||||
this.list[index]
|
||||
return pageData.items[index]
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user