Skip to content

Commit

Permalink
将OPQBot平台群用户设置为不区分群身份
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Feb 7, 2024
1 parent 0108bf7 commit 3fd8224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OlivOS/adapter/OPQBot/OPQBotSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def get_Event_from_SDK(target_event):
target_event.data.sender['name'] = target_event.data.sender['nickname']
target_event.data.sender['sex'] = 'unknown'
target_event.data.sender['age'] = 0
target_event.data.sender['role'] = 'member'
if 'role' in target_event.data.sender:
target_event.data.sender.pop('role')
target_event.data.host_id = None
elif target_event.sdk_event.payload.EventName == 'ON_EVENT_FRIEND_NEW_MSG':
if type(target_event.sdk_event.payload.EventData) is dict \
Expand Down Expand Up @@ -186,7 +187,6 @@ def get_Event_from_SDK(target_event):
target_event.data.sender['name'] = target_event.data.sender['nickname']
target_event.data.sender['sex'] = 'unknown'
target_event.data.sender['age'] = 0
target_event.data.sender['role'] = 'member'
target_event.data.host_id = None
elif False and target_event.sdk_event.payload.EventName == 'ON_EVENT_FRIEND_NEW_MSG':
if type(target_event.sdk_event.payload.EventData) is dict \
Expand Down

0 comments on commit 3fd8224

Please sign in to comment.