def getZhanYiInfo(self,index): '''获取角色的当前战役信息 ''' zhanyilist = ZYManage().zhanyiSet.keys() zhanyilist.sort() if index ==-1: zid = self.currentZY else: zid = zhanyilist[index] nowindex = zhanyilist.index(zid) maxpage = len(zhanyilist) zy = ZYManage().getZhanYiInfoById(zid) zyinfo = zy.formatInfo(self.currentZY,self.currentZJ) info = {'index':nowindex, 'maxpage':maxpage, 'zyinfo':zyinfo} return info