From 1e04533753999ec7b5a5d33dbed3932b41e372dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=91=E8=B4=A8?= Date: Sun, 12 Feb 2023 04:08:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=E5=8F=91=E5=9B=BE=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=B8=AD=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OlivOS/infoAPI.py | 4 ++-- OlivOS/onebotSDK.py | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/OlivOS/infoAPI.py b/OlivOS/infoAPI.py index 5675059e..fa58a7b5 100644 --- a/OlivOS/infoAPI.py +++ b/OlivOS/infoAPI.py @@ -17,8 +17,8 @@ import OlivOS -OlivOS_Version = '0.10.18' -OlivOS_SVN = 118 +OlivOS_Version = '0.10.19' +OlivOS_SVN = 119 # Compatible <= Plugin[compatible_svn] : Compatible # OldCompatible <= Plugin[compatible_svn] < Compatible : OldCompatible Warn diff --git a/OlivOS/onebotSDK.py b/OlivOS/onebotSDK.py index f7ef7d87..1ff35f60 100644 --- a/OlivOS/onebotSDK.py +++ b/OlivOS/onebotSDK.py @@ -403,9 +403,7 @@ def formatMessage(data:str): file_path = OlivOS.contentAPI.resourcePathTransform('images', file_path) if os.path.exists(file_path): data_obj_this.data['file'] = 'file:///%s' % file_path - if not data_obj_this.data['file'].startswith('file:///'): - data_obj_this.data['file'] = 'file:///%s' % data_obj_this.data['file'] - res = data_obj.get('old_string') + res = data_obj.get('old_string') return res # 支持OlivOS API调用的方法实现