Commit ddaac30c authored by Medicean's avatar Medicean

(Enhance: Core) 「解码器」 asoutput 新增传入参数 ext

parent e7ed8140
......@@ -9,6 +9,11 @@
* 修改发包默认 UserAgent 为 随机 User-Agent
* 修复 Chunk 发包下 Download 异常问题 #272 (thx @c2xusnpq6)
* 修复 Download 在 chunk 和 multipart 发包模式下 asunescape 不生效的问题
### 核心
* JSP 类型支持「解码器」
## 2021/02/06 `v(2.1.10)`
### 核心
......
......@@ -75,12 +75,13 @@ class PHP extends Base {
}
let asencCode;
let ext = {
opts: this.__opts__,
};
if (!force_default) {
asencCode = this.__decoder__[this.__opts__['decoder'] || 'default'].asoutput();
asencCode = this.__decoder__[this.__opts__['decoder'] || 'default'].asoutput(ext);
} else {
asencCode = this
.__decoder__['default']
.asoutput();
asencCode = this.__decoder__['default'].asoutput(ext);
}
// 组合完整的代码
let tmpCode = data['_'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment