def InitNewsList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.content = Util.trimHtmlTag(data.content) reslist.append(data) return reslist
def InitEducationList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.description = Util.trimHtmlTag(data.description) reslist.append(data) return reslist
def InitRecommendList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) if data.imagepath: data.imagepath = Util.getFileUrl(data.imagepath) reslist.append(data) return reslist
def InitCourseList(self, datalist): reslist = [] if datalist: for data in datalist: if not data: continue data.createtime = Util.GetGamTime(data.createtime, True) data.description = Util.trimHtmlTag(data.description) if data.imagepath: data.imagepath = Util.getFileUrl(data.imagepath) reslist.append(data) return reslist