|  |  |  | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def ResetFlashSaleBuyCnt(ipyData, dayIndex, state): | 
|---|
|  |  |  | def ResetFlashSaleBuyCnt(ipyData): | 
|---|
|  |  |  | #重置限时抢购商店全服购买次数 | 
|---|
|  |  |  | if state == 0: | 
|---|
|  |  |  | return | 
|---|
|  |  |  | shopTypeList = ipyData.GetShopTypeList() | 
|---|
|  |  |  | dayShopList = shopTypeList[dayIndex] if dayIndex < len(shopTypeList) else shopTypeList[-1] | 
|---|
|  |  |  | shopType = dayShopList[state-1] if state-1 < len(dayShopList) else dayShopList[-1] | 
|---|
|  |  |  | DoResetStoreServerBuyCnt([shopType]) | 
|---|
|  |  |  | dayShopRangeDict = ipyData.GetShopTypeList() | 
|---|
|  |  |  |  | 
|---|
|  |  |  | resetTypeList = [] | 
|---|
|  |  |  | for shopTypeList in dayShopRangeDict.values(): | 
|---|
|  |  |  | for dayShopList in shopTypeList: | 
|---|
|  |  |  | for shopType in dayShopList: | 
|---|
|  |  |  | if shopType not in resetTypeList: | 
|---|
|  |  |  | resetTypeList.append(shopType) | 
|---|
|  |  |  | if resetTypeList: | 
|---|
|  |  |  | DoResetStoreServerBuyCnt(resetTypeList) | 
|---|
|  |  |  | return | 
|---|
|  |  |  |  | 
|---|
|  |  |  | def SyncStoreServerBuyInfo(curPlayer, syncCntDict={}): | 
|---|