fix: 解决一些工单已知问题 (#8501)

Co-authored-by: feng626 <1304903146@qq.com>
This commit is contained in:
fit2bot
2022-06-28 17:19:33 +08:00
committed by GitHub
parent b619ebf423
commit b33e376c90
7 changed files with 45 additions and 18 deletions

View File

@@ -55,10 +55,7 @@ class BaseHandler:
def _send_processed_mail_to_applicant(self, step=None):
applicant = self.ticket.applicant
if self.ticket.status == TicketStatus.closed:
processor = applicant
else:
processor = step.processor if step else self.ticket.processor
processor = step.processor if step else applicant
logger.debug('Send processed mail to applicant: {}'.format(applicant))
send_ticket_processed_mail_to_applicant(self.ticket, processor)