Skip to content

Commit ef64ef7

Browse files
committed
fix: add ip_address to chat user data in application_task
1 parent 566b508 commit ef64ef7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/trigger/handler/impl/task/application_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def execute(self, trigger_task, **kwargs):
9797
'chat_user_id': chat_user_id,
9898
'chat_user_type': ChatUserType.ANONYMOUS_USER.value,
9999
'asker': {'username': "游客"},
100+
'ip_address': kwargs.get('body')['ip_address'],
100101
'source': {
101102
'type': ChatSourceChoices.TRIGGER.value
102103
},

0 commit comments

Comments
 (0)