Skip to content

Commit

Permalink
消除发图逻辑中不必要的路径转换
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Feb 11, 2023
1 parent a2861b2 commit 1e04533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions OlivOS/infoAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions OlivOS/onebotSDK.py
Original file line number Diff line number Diff line change
Expand Up @@ -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调用的方法实现
Expand Down

0 comments on commit 1e04533

Please sign in to comment.