fix: 高级 mock 期望 支持关闭开启功能

This commit is contained in:
gaoxiaolin.gao 2018-07-24 19:57:03 +08:00
parent 079e4d1f93
commit 5fe93a439f
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* 增加wiki数据导出功能
* 用户管理处增加搜索功能
* 增加项目全局 mock 脚本功能
* 高级 mock 期望 支持关闭开启功能
#### Bug Fixed

View File

@ -176,7 +176,7 @@ module.exports = function(){
this.bindHook('mock_after', async function(context){
let interfaceId = context.interfaceData._id;
let caseData = await checkCase(context.ctx, interfaceId);
// 只有开启高级mock才可用
if(caseData && caseData.case_enable){
// 匹配到高级mock