mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-20 11:00:35 +00:00
@@ -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())
|
||||
|
Reference in New Issue
Block a user