Skip to content

Commit

Permalink
Merge pull request #119 from willkyu/main
Browse files Browse the repository at this point in the history
修复与LLOneBot对接时无法发送私聊消息的问题
  • Loading branch information
lunzhiPenxil authored Mar 11, 2024
2 parents 433a466 + d410586 commit 8421c54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion OlivOS/adapter/onebotV11/onebotSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ def send_onebot_post_json(self):
return None
else:
try:
json_str_tmp = json.dumps(obj=self.obj.__dict__, ensure_ascii=False)
# clear_dict = {k: v for k, v in self.obj.__dict__.items() if v != -1}
clear_dict = self.obj.__dict__
if clear_dict['message_type']=='private':
clear_dict.pop('group_id','No "group_id"')
json_str_tmp = json.dumps(obj=clear_dict, ensure_ascii=False)
tmp_host = self.bot_info.host
if tmp_host.startswith('http://') or tmp_host.startswith('https://'):
pass
Expand Down

0 comments on commit 8421c54

Please sign in to comment.