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调用的方法实现