def initArenaData(self):
     '''初始化竞技场信息
     '''
     characterId = self._owner.baseInfo.id
     data = dbarena.getCharacterArenaInfo(characterId)
     self.score = data['score']
     self.liansheng = data['liansheng']
     self.lastresult = data['lastresult']
     self.lasttime = data['lasttime']
     self.ranking = data['ranking']
     self.surplustimes = data['surplustimes']
     self.buytimes = data['buytimes']
     self.recorddate = data['recorddate']
     self.receive = data['receive']
     if self.recorddate != datetime.date.today():  #如果不是当天的数据则重置
         self.resetArenaData()
 def initArenaData(self):
     """初始化竞技场信息
     """
     characterId = self._owner.baseInfo.id
     data = dbarena.getCharacterArenaInfo(characterId)
     self.score = data['score']
     self.liansheng = data['liansheng']
     self.lastresult = data['lastresult']
     self.lasttime = data['lasttime']
     self.ranking = data['ranking']
     self.surplustimes = data['surplustimes']
     self.buytimes = data['buytimes']
     self.recorddate = data['recorddate']
     self.receive = data['receive']
     if self.recorddate != datetime.date.today():#如果不是当天的数据则重置
         self.resetArenaData()