Skip to content

Conversation

@huajiqaq
Copy link
Contributor

描述 / Description

  1. 新增脚本功能
    基于 Rhino JavaScript 引入简易脚本功能实现,用户可直接编写 .js 文件作为自定义 Hook 接收到的请求和接收到的响应。
  2. 核心类设计优化
    • entry:从抽象方法改为非抽象,提供默认实现,子类可不被重写
    • initOnce:标记为 final / 强制调用,确保不可被跳过、不可被重写

类型 / Type

  • Bug 修复 / Bug Fix
  • 新功能 / New Feature
  • 文档更新 / Documentation Update
  • 其他(请描述)/ Other (please describe):

修复或解决的问题 / Issues Fixed or Closed by This PR

  • 解决子类必须实现 entry 导致的冗余代码问题
  • 解决 initOnce 被子类覆盖或遗漏调用导致的初始化不可靠问题
  • 新增简单的脚本能力

清单 / Checklist

  • 我已阅读并遵循贡献指南 / I have read and followed the contribution guidelines
  • 我已在本地测试这些更改 / I have tested these changes locally
  • 我已更新相关文档或注释(如适用) / I have updated relevant documentation or comments (if applicable)
  • 我确认此更改不会破坏任何原有功能 / I confirm this change does not break any existing features
  • 我已进行多版本适配(如适用) / I have used MMVersion for version compatibility (if applicable)
  • 我已在多个微信版本上测试此更改(如适用) / I have tested this change on multiple WeChat versions (if applicable)

其他信息 / Additional Information

@huajiqaq huajiqaq changed the title feat: add script engine, refine entry/initOnce constraints #6 feat: add script engine, refine entry/initOnce constraints Feb 12, 2026
…lation failure due to command line length limits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant