示例#1
0
 def getRepurchaseInfo(self, characterId):
     """获取角色回购的物品的信息"""
     repurchaseItems = []
     data = dbShop.getPlayerRepurchaseInfo(characterId)
     for _item in data:
         itemInfo = {}
         itemInfo["item"] = Item(id=_item[1])
         itemInfo["item"].baseInfo.setItemPrice(int(itemInfo["item"].baseInfo.getItemPrice() * 1.5))
         itemInfo["overTime"] = 10800 - _item[-1].seconds
         repurchaseItems.append(itemInfo)
     return repurchaseItems
示例#2
0
 def getRepurchaseInfo(self, characterId):
     """获取角色回购的物品的信息"""
     repurchaseItems = []
     data = dbShop.getPlayerRepurchaseInfo(characterId)
     for _item in data:
         itemInfo = {}
         itemInfo["item"] = Item(id=_item[1])
         itemInfo["item"].baseInfo.setItemPrice(int(itemInfo["item"].baseInfo.getItemPrice() / 0.7))
         itemInfo["overTime"] = 10800 - _item[-1].seconds
         repurchaseItems.append(itemInfo)
     return {"shopCategory": 1, "curPage": 1, "maxPage": 1, "items": repurchaseItems}
示例#3
0
 def getRepurchaseInfo(self,characterId):
     '''获取角色回购的物品的信息'''
     repurchaseItems = []
     data = dbShop.getPlayerRepurchaseInfo(characterId)
     for _item in data:
         itemInfo = {}
         itemInfo['item'] = Item(id = _item[1])
         itemInfo['item'].baseInfo.setItemPrice(int(itemInfo['item'].baseInfo.getItemPrice()*1.5))
         itemInfo['overTime'] = 10800 - _item[-1].seconds
         repurchaseItems.append(itemInfo)
     return repurchaseItems
     
     
     
     
示例#4
0
 def getRepurchaseInfo(self, characterId):
     '''获取角色回购的物品的信息'''
     repurchaseItems = []
     data = dbShop.getPlayerRepurchaseInfo(characterId)
     for _item in data:
         itemInfo = {}
         itemInfo['item'] = Item(id=_item[1])
         itemInfo['item'].baseInfo.setItemPrice(
             int(itemInfo['item'].baseInfo.getItemPrice() / 0.7))
         itemInfo['overTime'] = 10800 - _item[-1].seconds
         repurchaseItems.append(itemInfo)
     return {
         'shopCategory': 1,
         'curPage': 1,
         'maxPage': 1,
         'items': repurchaseItems
     }