Commit 137d6662 authored by Medicean's avatar Medicean

(Enhance:Core)编码器 ext 参数新增元素 opts, 值为当前 shell 的配置

parent 28ec8a60
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
### 核心模块 ### 核心模块
* 修复 download multipart 发包时 download 发包为空的问题 (asunescape 功能引起) * 修复 download multipart 发包时 download 发包为空的问题 (asunescape 功能引起)
* 编码器 ext 参数新增元素 opts, 值为当前 shell 的配置
> 有了这个,你就可以根据 shell 的配置信息来动态的进行加密了, 比如用 Cookie 里面的 SessionID 来作为秘钥
### 数据管理 ### 数据管理
......
{ {
"name": "antsword", "name": "antsword",
"version": "2.1.1.4", "version": "2.1.1.5",
"description": "中国蚁剑是一款跨平台的开源网站管理工具", "description": "中国蚁剑是一款跨平台的开源网站管理工具",
"main": "app.js", "main": "app.js",
"dependencies": { "dependencies": {
......
...@@ -222,6 +222,7 @@ class Base { ...@@ -222,6 +222,7 @@ class Base {
*/ */
encodeComplete(tag_s, tag_e, data) { encodeComplete(tag_s, tag_e, data) {
let ext = { let ext = {
opts: this.__opts__,
rsa: this.rsaEncrypt() rsa: this.rsaEncrypt()
} }
// 编码器处理 // 编码器处理
......
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