def readMail(self, mailID): '''阅读邮件(将邮件未读状态改为以读状态) @param mailID: int 邮件的ID ''' result = self.checkMyMail(mailID) if not result: return {'result': False, 'message': Lg().g(360)} m = Mail(id=mailID) m.updateMainInfo({'isReaded': 1}) data = m.formatMailInfo() return {'result': True, 'data': data}
def readMail(self,mailID): '''阅读邮件(将邮件未读状态改为以读状态) @param mailID: int 邮件的ID ''' result = self.checkMyMail(mailID) if not result: return {'result':False,'message':Lg().g(360)} m = Mail(id = mailID) m.updateMainInfo({'isReaded':1}) data = m.formatMailInfo() return {'result':True,'data':data}
def saveMail(self, mailID): '''保存邮件''' result = self.checkMyMail(mailID) if not result: return {'result': False, 'message': Lg().g(360)} m = Mail(id=mailID) result = m.updateMainInfo({'isSaved': 1}) if not result: return {'result': False, 'message': Lg().g(362)} return {'result': True, 'message': Lg().g(363)}
def saveMail(self,mailID): '''保存邮件''' result = self.checkMyMail(mailID) if not result: return {'result':False,'message':Lg().g(360)} m = Mail(id = mailID) result = m.updateMainInfo({'isSaved':1}) if not result: return {'result':False,'message':Lg().g(362)} return {'result':True,'message':Lg().g(363)}