Open
Conversation
Closed
Owner
|
感谢提交这个修复思路,Windows 路径问题确实值得处理。不过这版我建议先不要直接合,主要原因是修复范围还不够完整。 当前改动只对“以反斜杠开头”的路径做了一次替换,但标准 Windows 本地路径更常见的是 另外这里更稳的做法,应该是把路径规范化统一收敛到 建议:
如果按这个方向补齐,我觉得这条 PR 可以继续推进。 |
Owner
|
感谢 PR!Windows 路径问题确实需要处理,但这个方案有几个问题:
建议更好的做法是在 如果你有兴趣更新这个 PR,可以参考新的代码结构。或者我们在后续版本中统一处理 Windows 兼容。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
使用Win作为OpenClaw服务器时,运行到callback-inbounds.js/loadLocalReplyMedia方法时发现,解析出来的mediaUrl会有问题,所有的/变成了\,这里新增了一个replace的方法。
P.S. 最合理的方式应该还是追溯到前面的解析部分去处理,这个pr可先作为一个临时解决方案