mirror of https://github.com/jumpserver/jumpserver
parent
5155b3c184
commit
11e538d417
|
@ -64,9 +64,14 @@ class BaseHandler:
|
|||
diff_context = {}
|
||||
if state != TicketState.approved:
|
||||
return diff_context
|
||||
|
||||
if self.ticket.type not in [TicketType.apply_asset, TicketType.apply_application]:
|
||||
return diff_context
|
||||
|
||||
# 企业微信,钉钉审批不做diff
|
||||
if not hasattr(self.ticket, 'old_rel_snapshot'):
|
||||
return diff_context
|
||||
|
||||
old_rel_snapshot = self.ticket.old_rel_snapshot
|
||||
current_rel_snapshot = self.ticket.get_local_snapshot()
|
||||
diff = set(current_rel_snapshot.items()) - set(old_rel_snapshot.items())
|
||||
|
|
Loading…
Reference in New Issue