Skip to content

Commit

Permalink
fix: 更新版本到21
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxiaomumu committed Jul 19, 2018
1 parent d099d8c commit 826c7c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### v1.3.20
### v1.3.21

* 请求配置增加 context.utils.CryptoJS
* 环境变量设置出增加全局变量

### v1.3.19

Expand Down
4 changes: 2 additions & 2 deletions docs/documents/project.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ YApi 支持项目复制功能,但是无法复制项目中的测试集合 list

<img src="./images/usage/project_setting_env.png" />

v1.3.20 新增全局变量,用户可以在环境列表中定义全局变量的名称和值, 接口运行或者测试集合里面可以通过 {{ global.err }} 来访问当前环境变量下定义的全局变量
v1.3.21 新增全局变量,用户可以在环境列表中定义全局变量的名称和值, 接口运行或者测试集合里面可以通过 {{ global.err }} 来访问当前环境变量下定义的全局变量

<img src="./images/usage/project_setting_global.png" />

Expand Down Expand Up @@ -156,7 +156,7 @@ context.responseBody.a = 2;
```
context.utils = {
_ //underscore 函数,详细 API 查看官网 http://underscorejs.org/
CryptoJS // crypto-js(v1.3.20+新增), 详细用法看 https://github.com/brix/crypto-js
CryptoJS // crypto-js(v1.3.21+新增), 详细用法看 https://github.com/brix/crypto-js
base64 //转换字符串为 base64 编码
md5 //转换字符串为 md5 编码
sha1 //转换字符串为 sha1 编码
Expand Down
2 changes: 1 addition & 1 deletion server/utils/ldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ exports.ldapQuery = (username, password) => {
};
reject(msg);
}
});
});
// 注册事件处理函数
const ldapSearch = (err, search) => {
const users = [];
Expand Down

0 comments on commit 826c7c6

Please sign in to comment.