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